/* Кастомные стили для IskraPay */

:root {
    --primary-green: #B9FF66;
    --dark-blue: #191A23;
}

/* ============================================
   Кастомные Select'ы
   ============================================ */

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Скрываем оригинальный select */
.custom-select select {
    display: none;
}

/* Стилизованная кнопка select */
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #191A23;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: #B9FF66;
}

.custom-select.active .custom-select-trigger {
    border-color: #B9FF66;
    box-shadow: 0 0 0 3px rgba(185, 255, 102, 0.1);
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-select-arrow svg {
    width: 12px;
    height: 12px;
    fill: #B9FF66;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #B9FF66;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-select.active .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #191A23;
    font-size: 0.95rem;
}

.custom-select-option:hover {
    background-color: #f3f4f6;
}

.custom-select-option.selected {
    background-color: rgba(185, 255, 102, 0.2);
    color: #191A23;
    font-weight: 600;
    position: relative;
}

.custom-select-option.selected::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    color: #B9FF66;
    font-weight: bold;
}

.custom-select-option:first-child {
    border-radius: 0.375rem 0.375rem 0 0;
}

.custom-select-option:last-child {
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Скроллбар для dropdown */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0.5rem 0.5rem 0;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #B9FF66;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8ee55;
}

/* Disabled состояние */
.custom-select.disabled .custom-select-trigger {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-select.disabled .custom-select-arrow {
    opacity: 0.5;
}

/* Placeholder текст */
.custom-select-trigger.placeholder {
    color: #9ca3af;
}

/* ============================================
   Кастомные уведомления (Glass effect)
   ============================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.notification {
    pointer-events: all;
    min-width: 320px;
    max-width: 420px;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateX(calc(100% + 40px));
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--notification-color);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: #191A23;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    padding: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #191A23;
    transform: rotate(90deg);
}

.notification-message {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin-left: 36px;
}

/* Типы уведомлений */
.notification-success {
    --notification-color: #10B981;
}

.notification-success .notification-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.notification-error {
    --notification-color: #EF4444;
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.notification-warning {
    --notification-color: #F59E0B;
}

.notification-warning .notification-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.notification-info {
    --notification-color: #3B82F6;
}

.notification-info .notification-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

/* Прогресс-бар для автозакрытия */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--notification-color);
    width: 100%;
    transform-origin: left;
    animation: progress linear;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
    .notification-container {
        left: 20px;
        right: 20px;
        top: 20px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ============================================
   Модальные окна с Glass эффектом
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    animation: modalIn 0.3s ease 0.1s forwards;
}

@keyframes modalIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Улучшенные Input'ы
   ============================================ */

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="number"],
.input-group input[type="url"],
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #191A23;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #B9FF66;
    box-shadow: 0 0 0 3px rgba(185, 255, 102, 0.1);
}

.input-group input:hover:not(:focus),
.input-group textarea:hover:not(:focus) {
    border-color: #d1d5db;
}

/* ============================================
   Анимации
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Утилиты
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect-dark {
    background: rgba(25, 26, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

