/* ===== MODERN GEN-Z SPOTLIGHT MODAL STYLES ===== */

.spotlight-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spotlight-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 520px;
    width: 95%;
    max-height: 85vh;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    color: #1f2937;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
    flex: 1;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.modal-title-section {
    position: relative;
    z-index: 1;
}

.modal-title-section h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 3rem;
}

.modal-title-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 400;
    padding-right: 3rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none !important;
    border: none !important;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1000;
    font-size: 1.2rem;
    font-weight: 400;
    pointer-events: auto;
    outline: none !important;
    box-shadow: none !important;
}

.modal-close:hover {
    color: #374151;
    background: none !important;
    border: none !important;
}

.modal-close:focus {
    color: #374151;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.modal-close:active {
    color: #1f2937;
    background: none !important;
    border: none !important;
}

.modal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Light grey scrollbar styling for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Form Sections */
.form-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

/* Circular Image Upload for Single Profile Picture */
.spotlight-image-upload .image-upload-container {
    position: relative;
}

.image-preview-circular {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 2px dashed #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.image-preview-circular:hover {
    border-color: #764ba2;
    transform: scale(1.05);
}

.image-preview-circular .upload-placeholder {
    text-align: center;
    color: #667eea;
}

.image-preview-circular .upload-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.image-preview-circular .upload-text {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
}

.image-preview-circular #preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-preview-circular .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-circular:hover .image-overlay {
    opacity: 1;
}

.image-preview-circular .change-image-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview-circular .change-image-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* Legacy Image Upload (for backward compatibility) */
.image-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px dashed #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.image-preview:hover {
    border-color: #764ba2;
    transform: scale(1.05);
}

/* Image preview items for selected images */
.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #667eea;
    display: inline-block;
    background: #f8fafc;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Image preview container styling */
.image-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.image-upload-container input[type="file"] {
    margin-bottom: 1rem;
}

.upload-placeholder {
    text-align: center;
    color: #667eea;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-text {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.change-image-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-image-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #374151;
    resize: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 10px 30px -5px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 25px -5px rgba(102, 126, 234, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: normal;
    font-family: inherit;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.6;
}



.field-hint {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

.char-count {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.char-count span {
    font-weight: 600;
    color: #667eea;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spotlight-modal-content {
        width: 95%;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.5rem;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-title-section h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .spotlight-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        border-radius: 16px 16px 0 0;
    }
    
    .image-preview {
        width: 120px;
        height: 120px;
    }
}

/* Special animations for Gen-Z feel */
@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.btn-primary i.fa-sparkles {
    animation: sparkle 2s infinite;
}

/* Custom select styling */
.form-group select {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 3rem;
    appearance: none;
    border: 2px solid transparent;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #374151;
}

.form-group select:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 25px -5px rgba(102, 126, 234, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 10px 30px -5px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.form-group select option {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-group select option:hover,
.form-group select option:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.form-group select option:first-child {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.form-group select option:first-child:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

.form-group select option:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

/* File input styling */
.form-group input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Demo note styling */
.demo-note {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    text-align: center;
}

.demo-note-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 500;
}

.demo-note-content i {
    font-size: 1.1rem;
}
