/* Modern Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modern-modal {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modern-modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem 2rem 1.5rem;
    position: relative;
}

.modern-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: gradient-pulse 3s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    animation: pulse-modal 2s ease-in-out infinite;
}

@keyframes pulse-modal {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
    }
}

.modal-icon i {
    font-size: 1.5rem;
    color: white;
}

.modal-title-wrapper {
    flex: 1;
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.modern-btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0;
}

.modern-btn-close:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: scale(1.1);
}

.modern-btn-close i {
    font-size: 0.9rem;
}

.modern-modal-body {
    padding: 2rem;
    background: transparent;
}

.modern-modal .form-group {
    margin-bottom: 1.5rem;
}

.modern-modal .modern-label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-modal .modern-input,
.modern-modal .modern-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-modal .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-modal .modern-input:focus,
.modern-modal .modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.2),
        0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.modern-modal .modern-select option {
    background: #1a1a1a;
    color: white;
    padding: 10px;
}

.modern-modal .modern-submit-btn {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-modal .modern-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-modal .modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-modal .modern-submit-btn:hover::before {
    left: 100%;
}

.modern-modal .form-security {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

/* Animation on modal show */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .modern-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header-content {
        gap: 1rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-icon i {
        font-size: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modern-modal-body {
        padding: 1.5rem;
    }
    
    .modern-modal .modern-input,
    .modern-modal .modern-select {
        padding: 0.875rem 1rem;
    }
    
    .modern-modal .modern-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}