/* Modern, polished styles for LucidPie */

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

:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --accent: #e0e0e0;
    --secondary: #666666;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --text: #000000;
    --text-light: #666666;
    --bg: #e8e8e8;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #e8e8e8 url('/static/background-light.png') center center / cover no-repeat fixed;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    height: auto;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    padding-top: 75px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

/* Dark mode support */
body.dark-mode {
    background: #1a1a1a url('/static/background-dark.png') center center / cover no-repeat fixed;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #ffffff;
}

/* Navigation */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

body.dark-mode .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

/* Ensure navbar text is always black on white background */
.navbar .nav-links a:not(#loginLink):not(#signupLink):not(.profile-circle) {
    color: #000000 !important;
}

.navbar .nav-links a:not(#loginLink):not(#signupLink):not(.profile-circle):hover,
.navbar .nav-links a:not(#loginLink):not(#signupLink):not(.profile-circle).active {
    color: #000000 !important;
    font-weight: 600;
}

/* Profile circle must be white */
.navbar .nav-links a.profile-circle,
.navbar .nav-links .profile-container a.profile-circle {
    color: #ffffff !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-logo span {
    font-family: 'Lato', sans-serif;
}

.logo-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Navbar logo */
.navbar .logo-icon {
    width: 35px;
    height: 35px;
    overflow: visible;
}

.navbar .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Light mode logo (default - light gray background) */
.logo-icon.light-mode img {
    content: url('/static/logo-light.png');
}

/* Dark mode logo (black background) */
.logo-icon.dark-mode img {
    content: url('/static/logo-dark.png');
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-main {
    font-size: 1.3rem;
    color: #000000;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.logo-text-sub {
    font-size: 0.7rem;
    color: #666666;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

/* Override nav-links color for profile circle - must be white */
.nav-links a.profile-circle,
.nav-links .profile-container a.profile-circle,
.nav-links .profile-container .profile-circle {
    color: #ffffff !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Profile circle hover should keep white text */
.nav-links a.profile-circle:hover,
.nav-links .profile-container a.profile-circle:hover {
    color: #ffffff !important;
}

/* Login button - white/outlined - consistent across all pages */
.nav-links a#loginLink,
.navbar .nav-links a#loginLink,
body .nav-links a#loginLink,
body.dark-mode .nav-links a#loginLink,
body.dark-mode .navbar .nav-links a#loginLink,
body * .nav-links a#loginLink {
    padding: 0.4rem 1rem !important;
    border: 2px solid #000000 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-left: 0.5rem !important;
}

.nav-links a#loginLink:hover,
.navbar .nav-links a#loginLink:hover,
body .nav-links a#loginLink:hover,
body.dark-mode .nav-links a#loginLink:hover,
body.dark-mode .navbar .nav-links a#loginLink:hover,
body * .nav-links a#loginLink:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Sign Up button - black/filled - consistent across all pages */
.nav-links a#signupLink {
    padding: 0.4rem 1rem !important;
    border: 2px solid #000000 !important;
    border-radius: 5px !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-left: 0.5rem !important;
}

.nav-links a#signupLink:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

body.dark-mode .nav-links a#signupLink {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

body.dark-mode .nav-links a#signupLink:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* Profile Dropdown - Industry Standard UI/UX */
.profile-container {
    position: relative;
    display: inline-block;
    margin-left: 0.75rem;
}

.profile-circle,
#profileCircle,
.profile-container .profile-circle,
.nav-links .profile-circle,
.navbar .profile-circle,
.profile-container-mobile .profile-circle,
#profileCircleMobile {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #000000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid #000000 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    box-sizing: border-box !important;
}

.profile-circle *,
#profileCircle *,
.profile-container .profile-circle *,
.nav-links .profile-circle *,
.navbar .profile-circle *,
.profile-container-mobile .profile-circle *,
#profileCircleMobile * {
    color: #ffffff !important;
}

.profile-circle:hover,
#profileCircle:hover,
.profile-container .profile-circle:hover,
.nav-links .profile-circle:hover,
.navbar .profile-circle:hover,
.profile-container-mobile .profile-circle:hover,
#profileCircleMobile:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: #000000 !important;
}

.profile-circle:active,
#profileCircle:active,
.profile-container .profile-circle:active,
.nav-links .profile-circle:active,
.navbar .profile-circle:active {
    transform: scale(1.0) !important;
}

.profile-circle:focus,
#profileCircle:focus,
.profile-container .profile-circle:focus,
.nav-links .profile-circle:focus,
.navbar .profile-circle:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

/* Profile menu - slide-in from right, clean and simple */
.profile-dropdown {
    position: fixed;
    top: 75px;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - 75px);
    background: #ffffff;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    flex-direction: column;
    align-items: stretch;
}

/* Remove dropdown arrow indicator */
.profile-dropdown::before {
    display: none;
}

.profile-dropdown.show {
    transform: translateX(0);
}

/* Overlay backdrop when menu is open */
.profile-dropdown-overlay {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.profile-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Header - clean and simple */
.profile-dropdown-header {
    display: none;
}

/* Items - clean minimal styling matching mobile menu */
.profile-dropdown-item {
    display: block;
    padding: 1rem 2rem;
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.5;
    border: none;
    margin: 0;
    position: relative;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

/* Remove the left indicator bar */
.profile-dropdown-item::after {
    display: none;
}

/* Simple hover - just font weight change like mobile */
.profile-dropdown-item:hover {
    color: #000000;
    font-weight: 600;
}

.profile-dropdown-item:active {
    color: #000000;
}

.profile-dropdown-item:focus {
    outline: none;
}

.profile-dropdown-item.logout {
    color: #dc2626;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
    padding-top: 1rem;
}

.profile-dropdown-item.logout::after {
    display: none;
}

.profile-dropdown-item.logout:hover {
    color: #b91c1c;
    font-weight: 600;
}

.profile-dropdown-item.logout:active {
    color: #b91c1c;
}

.profile-dropdown-item.logout:focus {
    outline: none;
}

/* Dashboard button centering */
.dashboard-card .btn-primary {
    display: block;
    margin: 1.5rem auto 0;
    text-align: center;
    color: #ffffff !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

body.dark-mode .card {
    background: #000000;
    color: #ffffff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

.btn-outline:hover * {
    color: #ffffff !important;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

body.dark-mode .auth-card {
    background: #000000;
    color: #ffffff;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Pricing */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

.pricing-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 700;
}

.pricing-header .subtitle {
    color: #666666;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    height: 100%;
}

body.dark-mode .pricing-card {
    background: #000000;
    color: #ffffff;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #000000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-badge.popular {
    background: #000000;
    color: white;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-price {
    margin: 1.5rem 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
}

.period {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
    z-index: 1;
}

body.dark-mode .dashboard-header {
    color: #ffffff;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 700;
}

.dashboard-header .subtitle {
    color: #666666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    z-index: 1;
}

body.dark-mode .dashboard-card {
    background: #000000;
    color: #ffffff;
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.credit-display {
    text-align: center;
    margin: 2rem 0;
}

.credit-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.credit-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-info p {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.account-info p:last-child {
    border-bottom: none;
}

/* File Upload */
.file-upload-area {
    border: 3px dashed var(--primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    margin: 2rem 0;
}

.file-upload-area:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-dark);
}

.file-upload-area.dragover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-dark);
    transform: scale(1.02);
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: var(--border);
    border-radius: 10px;
    height: 30px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

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

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

.error-message.active,
.success-message.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.logo-text-sub {
    font-size: 0.7rem;
    color: #666666;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

/* Override nav-links color for profile circle - must be white */
.nav-links a.profile-circle,
.nav-links .profile-container a.profile-circle,
.nav-links .profile-container .profile-circle {
    color: #ffffff !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Profile circle hover should keep white text */
.nav-links a.profile-circle:hover,
.nav-links .profile-container a.profile-circle:hover {
    color: #ffffff !important;
}

/* Login button - white/outlined - consistent across all pages */
.nav-links a#loginLink,
.navbar .nav-links a#loginLink,
body .nav-links a#loginLink,
body.dark-mode .nav-links a#loginLink,
body.dark-mode .navbar .nav-links a#loginLink,
body * .nav-links a#loginLink {
    padding: 0.4rem 1rem !important;
    border: 2px solid #000000 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-left: 0.5rem !important;
}

.nav-links a#loginLink:hover,
.navbar .nav-links a#loginLink:hover,
body .nav-links a#loginLink:hover,
body.dark-mode .nav-links a#loginLink:hover,
body.dark-mode .navbar .nav-links a#loginLink:hover,
body * .nav-links a#loginLink:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Sign Up button - black/filled - consistent across all pages */
.nav-links a#signupLink {
    padding: 0.4rem 1rem !important;
    border: 2px solid #000000 !important;
    border-radius: 5px !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-left: 0.5rem !important;
}

.nav-links a#signupLink:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

body.dark-mode .nav-links a#signupLink {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

body.dark-mode .nav-links a#signupLink:hover {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* Profile Dropdown - Industry Standard UI/UX */
.profile-container {
    position: relative;
    display: inline-block;
    margin-left: 0.75rem;
}

.profile-circle,
#profileCircle,
.profile-container .profile-circle,
.nav-links .profile-circle,
.navbar .profile-circle,
.profile-container-mobile .profile-circle,
#profileCircleMobile {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #000000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid #000000 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    box-sizing: border-box !important;
}

.profile-circle *,
#profileCircle *,
.profile-container .profile-circle *,
.nav-links .profile-circle *,
.navbar .profile-circle *,
.profile-container-mobile .profile-circle *,
#profileCircleMobile * {
    color: #ffffff !important;
}

.profile-circle:hover,
#profileCircle:hover,
.profile-container .profile-circle:hover,
.nav-links .profile-circle:hover,
.navbar .profile-circle:hover,
.profile-container-mobile .profile-circle:hover,
#profileCircleMobile:hover {
    background: #333333 !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: #000000 !important;
}

.profile-circle:active,
#profileCircle:active,
.profile-container .profile-circle:active,
.nav-links .profile-circle:active,
.navbar .profile-circle:active {
    transform: scale(1.0) !important;
}

.profile-circle:focus,
#profileCircle:focus,
.profile-container .profile-circle:focus,
.nav-links .profile-circle:focus,
.navbar .profile-circle:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

/* Dashboard button centering */
.dashboard-card .btn-primary {
    display: block;
    margin: 1.5rem auto 0;
    text-align: center;
    color: #ffffff !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

body.dark-mode .card {
    background: #000000;
    color: #ffffff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

.btn-outline:hover * {
    color: #ffffff !important;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

body.dark-mode .auth-card {
    background: #000000;
    color: #ffffff;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Pricing */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

.pricing-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 700;
}

.pricing-header .subtitle {
    color: #666666;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    height: 100%;
}

body.dark-mode .pricing-card {
    background: #000000;
    color: #ffffff;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #000000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-badge.popular {
    background: #000000;
    color: white;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-price {
    margin: 1.5rem 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Arial', sans-serif;
}

.period {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
    z-index: 1;
}

body.dark-mode .dashboard-header {
    color: #ffffff;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 700;
}

.dashboard-header .subtitle {
    color: #666666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    z-index: 1;
}

body.dark-mode .dashboard-card {
    background: #000000;
    color: #ffffff;
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.credit-display {
    text-align: center;
    margin: 2rem 0;
}

.credit-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.credit-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-info p {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.account-info p:last-child {
    border-bottom: none;
}

/* File Upload */
.file-upload-area {
    border: 3px dashed var(--primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    margin: 2rem 0;
}

.file-upload-area:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-dark);
}

.file-upload-area.dragover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-dark);
    transform: scale(1.02);
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: var(--border);
    border-radius: 10px;
    height: 30px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

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

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

.error-message.active,
.success-message.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    width: 24px;
    height: 18px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu:hover,
.hamburger-menu:focus,
.hamburger-menu.active {
    background: transparent !important;
    outline: none;
}

.hamburger-menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.hamburger-menu.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 1rem !important;
        align-items: center !important;
    }
    
    .nav-container.logged-in {
        justify-content: flex-start !important;
    }
    
    
    .nav-logo {
        margin: 0 !important;
        padding: 0 !important;
        order: 1;
    }
    
    /* Hide profile container inside nav-links on mobile */
    .nav-links .profile-container {
        display: none !important;
    }
    
    /* Show mobile profile container - hidden by default */
    .profile-container-mobile {
        order: 3;
        margin-left: 0.5rem;
        display: none !important;
    }
    
    .profile-container-mobile[style*="display: block"],
    .profile-container-mobile[style*="display: flex"] {
        display: flex !important;
        align-items: center;
    }
    
    .hamburger-menu {
        display: block !important;
        width: 24px !important;
        height: 18px !important;
        position: relative !important;
        z-index: 1001 !important;
        flex-shrink: 0 !important;
    }
    
    /* When logged out, hamburger menu goes to the right */
    .nav-container.logged-out .hamburger-menu,
    .nav-container:not(.logged-in) .hamburger-menu {
        order: 999 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    /* When logged in on mobile: hamburger on left (order 2), profile on right (order 3) */
    .nav-container.logged-in .hamburger-menu {
        order: 2 !important;
        margin-right: 0.1rem !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    .nav-container.logged-in .profile-container-mobile {
        display: flex !important;
        visibility: visible !important;
        order: 3 !important;
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Override inline styles when logged in on mobile */
    .nav-container.logged-in #profileContainerMobile {
        display: flex !important;
        visibility: visible !important;
    }
    
    .nav-container.logged-in #profileCircleMobile {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Push hamburger menu further right by adding space before it */
    .nav-container.logged-in .nav-logo {
        flex-shrink: 0 !important;
    }
    
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        gap: 0;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        /* Remove from flex flow so it doesn't affect hamburger positioning */
        order: -1;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #e0e0e0;
        text-align: left;
        font-size: 1rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a#loginLink,
    .nav-links a#signupLink {
        margin: 0.5rem 2rem;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        text-align: center;
        border: 2px solid #000000;
    }
    
    .nav-links a#loginLink {
        background: transparent;
        color: #000000 !important;
    }
    
    .nav-links a#signupLink {
        background: #000000;
        color: #ffffff !important;
    }
}

