/* Shared Common Styles - Used by both Mentor and Mentee */
@import url('/styles/theme.css');


/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Awesome 6 Icon Fix - Add this after your CSS reset */
.fa, .fas, .far, .fab, .fal, .fad,
i[class^="fa-"],
i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* For regular (outlined) icons */
.far {
    font-weight: 400 !important;
}

/* For brand icons */
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}


/* Root Variables - Extended from theme.css */
:root {
    /* Override or extend theme variables if needed */
    --primary-color: var(--brand-navy);
    --secondary-color: #3B82F6;
    --danger-color: var(--error-color);
    --warning-color: var(--warning-color);
    --success-color: var(--success-color);
    --info-color: var(--info-color);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-secondary);
}

.highlight {
    background: linear-gradient(135deg, var(--brand-navy), #3B82F6);

    background-clip: text;          /* future standard */
    -webkit-background-clip: text;  /* Chrome / Edge / Safari */

    color: transparent;             /* standard */
    -webkit-text-fill-color: transparent; /* Safari fallback */

    font-weight: 600;
}


/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-align: center;
}

.btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover:not(:disabled) {
    border-color: #4285f4;
    background: var(--bg-hover);
}

/* Form-specific button styles */
.login-form .btn-primary,
.register-form .btn-primary,
.auth-form .btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form .btn-google,
.register-form .btn-google,
.auth-form .btn-google {
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color var(--transition-speed) var(--transition-ease);
    background-color: var(--input-bg);
    color: var(--input-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(32, 42, 68, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message.error {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.message.warning {
    background: var(--warning-bg);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.message.info {
    background: var(--info-bg);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1001;
    transform: scale(0.7);
    transition: transform var(--transition-speed) var(--transition-ease);
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Customer care modal uses softer section background so it is grey in light mode
   and dark in dark mode without affecting other modals */
#customerCareModal .modal-content {
    background: var(--bg-secondary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all var(--transition-speed) var(--transition-ease);
}

.close-btn:hover {
    background: var(--bg-hover);
    color: var(--error-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) var(--transition-ease);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .card {
        padding: 15px;
    }
}

/* Dark theme is handled by theme.css with [data-theme="dark"] selector */
.form-group input,
.form-group select,
.form-group textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0; 
}

.modal-content {
    background: #2d3748;
    color: #e2e8f0;
}


/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for better accessibility */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid currentColor;
    }
}


/* Notification Modal Overlay */
.notif-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: notifFadeIn 0.3s ease-out;
}

.notif-modal.show {
    display: block;
}

@keyframes notifFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notif-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Notification Modal Content */
.notif-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    margin: 50px auto;
    background: var(--card-bg) !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    animation: notifSlideDown 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes notifSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Modal Header */
.notif-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.notif-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.notif-modal-header h2 i {
    color: #ffffff;
}

.notif-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.notif-mark-all-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-mark-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notif-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Notification Modal Body */
.notif-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-secondary) !important;
}

.notif-list {
    min-height: 300px;
}

/* Notification Items */
.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    background: transparent;
}

.notif-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.12);
    border-left-color: var(--accent-primary);
}

.notif-item.unread:hover {
    background: rgba(59, 130, 246, 0.18);
    border-left-color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

.notif-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notif-icon i {
    color: white;
    font-size: 20px;
}

.notif-content {
    flex: 1;
}

.notif-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.notif-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notif-time {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.notif-time i {
    font-size: 11px;
}

.notif-mark-read-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    opacity: 0;
}

.notif-item:hover .notif-mark-read-btn {
    opacity: 1;
}

.notif-mark-read-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

/* Loading State */
.notif-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.notif-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* No Notifications */
.notif-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.notif-empty i {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.notif-empty p {
    margin: 0;
    font-size: 16px;
}

/* Notification Modal Footer */
.notif-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    text-align: right;
    border-radius: 0 0 12px 12px;
}

.notif-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.notif-btn-secondary:hover {
    background: #5a6268;
}

/* Notification Badge */
.notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notifPulse 2s infinite;
}

.notif-badge:empty {
    display: none;
}

@keyframes notifPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Scrollbar */
.notif-modal-body::-webkit-scrollbar {
    width: 8px;
}

.notif-modal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.notif-modal-body::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.notif-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .notif-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }
    
    .notif-modal-header h2 {
        font-size: 18px;
    }
    
    .notif-mark-all-btn span {
        display: none;
    }
}

/* Message Container Styles (showMessage) */
#errorMessage,
#successMessage {
    display: none;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Error Message */
#errorMessage {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #e74c3c;
}

/* Success Message */
#successMessage {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Out Animation (optional enhancement) */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Icon Support (if you want to add icons) */
/* Icon Support - FIXED for Font Awesome 6 */
#errorMessage::before,
#successMessage::before {
    font-family: "Font Awesome 6 Free" !important;  /* Changed from 5 to 6 */
    font-weight: 900 !important;
    margin-right: 10px;
    font-size: 16px;
    display: inline-block;
}

#errorMessage::before {
    content: "\f06a"; /* exclamation-circle icon */
}

#successMessage::before {
    content: "\f058"; /* check-circle icon */
}



/* customer care modal */

#customerCareModal.modal {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* When shown */
#customerCareModal[style*="display: flex"] {
    display: flex !important;
}

#customerCareModal.show {
    display: flex;
}

#customerCareModal {
    display: none;
}


