/* static/css/signup_style.css */

/* Apply Inter font globally and set base background/text colors */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* slate-900 */
    color: #cbd5e1; /* slate-300 */
    /* Tailwind's flex flex-col min-h-screen are applied directly in HTML */
}

/* Custom button style (mirrors .btn-primary Tailwind setup) */
.btn-primary {
    /* Use Tailwind classes directly in HTML for buttons */
    /* This CSS class is kept for potential non-Tailwind elements if needed */
    /* Example: */
    /* display: inline-block;
    background-color: #06b6d4; /* cyan-500 */
    /* color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    /* border-radius: 0.5rem; /* rounded-lg */
    /* transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out; */
}
/* Hover/disabled states are handled by Tailwind classes in HTML */
/* .btn-primary:hover { background-color: #0891b2; transform: translateY(-2px); } */
/* .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } */


/* Input field base styling (mirrors .form-input etc. Tailwind setup) */
.form-input, .form-select, .form-textarea {
    /* Use Tailwind classes directly in HTML for forms */
    /* Example: */
    /* width: 100%;
    padding: 0.75rem 1rem; /* px-4 py-3 */
    /* border-radius: 0.5rem; /* rounded-lg */
    /* background-color: #334155; /* slate-700 */
    /* border: 1px solid #475569; /* slate-600 */
    /* color: #e2e8f0; /* gray-200 (adjust as needed) */
    /* transition: border-color 0.3s, box-shadow 0.3s; */
}

/* Fix for select elements - ensure proper display on all browsers */
select.form-select {
    width: 100%;
    padding: 0.5rem 1rem; 
    appearance: none;
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #475569; /* slate-600 */
    color: #e2e8f0; /* slate-200 */
    border-radius: 0.375rem; /* rounded-md */
}
/* .form-input::placeholder, .form-textarea::placeholder { color: #64748b; } /* placeholder-gray-500 */
/* .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: transparent; /* focus:border-transparent */
/* box-shadow: 0 0 0 2px #06b6d4; /* focus:ring-2 focus:ring-cyan-500 */
/* } */

/* Checkbox specific styling */
.form-checkbox {
    /* Use Tailwind classes directly in HTML for checkboxes */
    /* Example: */
    /* height: 1rem; /* h-4 */
    /* width: 1rem; /* w-4 */
    /* border-radius: 0.25rem; /* rounded */
    /* border-color: #64748b; /* border-gray-500 */
    /* background-color: #334155; /* bg-slate-700 */
    /* color: #0891b2; /* text-cyan-600 */
    /* cursor: pointer; */
}
/* .form-checkbox:focus { box-shadow: 0 0 0 2px #06b6d4; } /* focus:ring-cyan-500 */


/* Fieldset styling */
.fieldset-group {
    border: 1px solid #475569; /* slate-600 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* p-6 (adjust as needed, was p-4 md:p-6) */
    margin-bottom: 1.5rem; /* mb-6 */
}
.fieldset-legend {
    padding-left: 0.5rem; /* px-2 */
    padding-right: 0.5rem; /* px-2 */
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #22d3ee; /* text-cyan-400 */
}

/* Style for active nav link (optional) */
.nav-active {
    /* Example: border-bottom: 2px solid #22d3ee; */
    /* Or use Tailwind classes directly: text-cyan-500 font-semibold */
}

/* Flash messages */
.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.flash-success {
    background-color: rgba(16, 185, 129, 0.2); /* emerald-500 with opacity */
    border: 1px solid #10b981; /* emerald-500 */
    color: #ecfdf5; /* emerald-50 */
}

.flash-error {
    background-color: rgba(239, 68, 68, 0.2); /* red-500 with opacity */
    border: 1px solid #ef4444; /* red-500 */
    color: #fef2f2; /* red-50 */
}

.flash-info {
    background-color: rgba(59, 130, 246, 0.2); /* blue-500 with opacity */
    border: 1px solid #3b82f6; /* blue-500 */
    color: #eff6ff; /* blue-50 */
}

/* Dashboard cards and layouts */
.dashboard-card {
    background-color: #1e293b; /* slate-800 */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #334155; /* slate-700 */
    font-weight: 600;
}

.dashboard-card-body {
    padding: 1.5rem;
}

/* Profile page styles */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid #06b6d4; /* cyan-500 */
}

.profile-info-section {
    background-color: #1e293b; /* slate-800 */
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section-title {
    color: #22d3ee; /* cyan-400 */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155; /* slate-700 */
}

/* Dashboard Welcome Header Styling - Dark Theme */
.welcome-header {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    backdrop-filter: blur(10px);
}

.welcome-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Dark Theme Navigation Card Styling */
.nav-item-card {
    background-color: #334155; /* slate-700 */
    border-color: #475569; /* slate-600 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item-card:hover {
    background-color: #475569; /* slate-600 */
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 211, 238, 0.5) !important;
}

.nav-item-card .nav-icon {
    transition: transform 0.3s ease;
}

.nav-item-card:hover .nav-icon {
    transform: scale(1.1);
}

/* Dashboard Card Enhancements - Dark Theme */
.dashboard-card-dark {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Custom Alert Styling - Dark Theme */
.alert-dark {
    background-color: #334155; /* slate-700 */
    border-color: #22d3ee; /* cyan-400 */
    color: #e2e8f0; /* slate-200 */
}

/* Avatar Circle - Dark Theme */
.avatar-circle {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Stats Cards Animation - Dark Theme */
.stats-card-dark {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    transition: all 0.3s ease;
}

.stats-card-dark:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(34, 211, 238, 0.3);
}

/* Progress Bar Styling - Dark Theme */
.progress-dark {
    background-color: #334155; /* slate-700 */
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-dark {
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
}

/* Button Enhancements - Dark Theme */
.btn-dark-theme {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0.5rem;
    background-color: #334155; /* slate-700 */
    border-color: #22d3ee; /* cyan-400 */
    color: #22d3ee; /* cyan-400 */
}

.btn-dark-theme:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 211, 238, 0.2);
    background-color: #22d3ee; /* cyan-400 */
    color: #0f172a; /* slate-900 */
}

/* Responsive Improvements - Dark Theme */
@media (max-width: 768px) {
    .welcome-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .nav-item-card {
        margin-bottom: 1rem;
    }
}

/* Dark theme color overrides for consistency */
.text-primary-dark { color: #22d3ee !important; } /* cyan-400 */
.text-secondary-dark { color: #64748b !important; } /* slate-500 */
.text-success-dark { color: #10b981 !important; } /* emerald-500 */
.text-warning-dark { color: #f59e0b !important; } /* amber-500 */
.text-danger-dark { color: #ef4444 !important; } /* red-500 */
.text-info-dark { color: #3b82f6 !important; } /* blue-500 */

.bg-primary-dark { background-color: #22d3ee !important; } /* cyan-400 */
.bg-secondary-dark { background-color: #334155 !important; } /* slate-700 */
.bg-success-dark { background-color: #10b981 !important; } /* emerald-500 */
.bg-warning-dark { background-color: #f59e0b !important; } /* amber-500 */
.bg-danger-dark { background-color: #ef4444 !important; } /* red-500 */
.bg-info-dark { background-color: #3b82f6 !important; } /* blue-500 */

.border-primary-dark { border-color: #22d3ee !important; } /* cyan-400 */
.border-secondary-dark { border-color: #334155 !important; } /* slate-700 */

/* Ensure all cards have consistent dark styling */
.card-dark {
    background-color: #1e293b !important; /* slate-800 */
    border: 1px solid #334155 !important; /* slate-700 */
    color: #e2e8f0 !important; /* slate-200 */
}

.card-header-dark {
    background-color: #22d3ee !important; /* cyan-400 */
    color: #0f172a !important; /* slate-900 */
    border-bottom: 1px solid #334155 !important; /* slate-700 */
}

/* Profile Page Specific Styling */
.profile-picture-container {
    position: relative;
    display: inline-block;
}

.profile-picture {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #22d3ee;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

.camera-button {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

/* Profile Info Cards */
.profile-info-card {
    background-color: #334155; /* slate-700 */
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    background-color: #475569; /* slate-600 */
    transform: translateX(4px);
}

.profile-info-icon {
    color: #22d3ee; /* cyan-400 */
    margin-right: 0.75rem;
    width: 1.25rem;
    flex-shrink: 0;
}

/* Subject Tags */
.subject-tag {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2);
    transition: all 0.3s ease;
}

.subject-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* Quick Stats Cards */
.quick-stat-card {
    background-color: #334155; /* slate-700 */
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #475569; /* slate-600 */
}

.quick-stat-card:hover {
    background-color: #475569; /* slate-600 */
    border-color: #22d3ee; /* cyan-400 */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-stat-number {
    color: #22d3ee; /* cyan-400 */
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.quick-stat-label {
    color: #94a3b8; /* slate-400 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Section Headers */
.profile-section-header {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.profile-section-header i {
    margin-right: 0.75rem;
}

/* Bio Section */
.bio-content {
    background-color: #334155; /* slate-700 */
    border-radius: 0.5rem;
    padding: 1.5rem;
    line-height: 1.6;
    color: #d1d5db; /* gray-300 */
}

/* Achievement Cards */
.achievement-card {
    background-color: #334155; /* slate-700 */
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #475569; /* slate-600 */
}

.achievement-card:hover {
    background-color: #475569; /* slate-600 */
    border-color: #22d3ee; /* cyan-400 */
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .profile-picture {
        width: 96px;
        height: 96px;
    }
    
    .camera-button {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .profile-picture {
        width: 80px;
        height: 80px;
    }
    
    .subject-tag {
        margin: 0.125rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .profile-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Loading states for profile pictures */
.profile-picture-loading {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Add any other custom, non-Tailwind styles here */