﻿:root {
    --primary-color: #0077B5;
    --secondary-color: #0E76A8;
    --accent-color: #00A0DC;
    --dark-color: #2D3748;
    --light-color: #F7FAFC;
    --text-color: #4A5568;
    --gradient: linear-gradient(135deg, #0077B5, #00A0DC);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.05) 0%, rgba(0, 160, 220, 0.1) 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.primary-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
    color: white;
    text-decoration: none;
}

.secondary-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.hero-image {
    margin-top: 3rem;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    flex-grow: 1;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--light-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    width: 30%;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step p {
    color: var(--text-color);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 300px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: normal;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.plan-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.plan-button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    text-align: center;
    text-decoration: none;
}

.basic-plan .plan-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.basic-plan .plan-button:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.pro-plan .plan-button {
    background: var(--gradient);
    color: white;
}

.pro-plan .plan-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
    color: white;
    text-decoration: none;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        width: 80%;
        margin-bottom: 2rem;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Auth Pages */
.form-control {
    padding: 0.8rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 181, 0.25);
}

.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.custom-control-label::before {
    border-color: #cbd5e0;
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}
/* New Auth Page Styles */
.auth-wrapper {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.05) 0%, rgba(0, 160, 220, 0.1) 100%);
    min-height: calc(100vh - 80px); /* Adjust based on header height */
    margin-top: 80px; /* Header height offset */
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: rgba(0, 119, 181, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group-text {
    border-color: #e2e8f0;
}

.auth-form .form-control {
    border-color: #e2e8f0;
    padding-left: 0;
}

.auth-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.auth-form .input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

.forgot-password {
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.auth-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f4f8;
}

/* Dark Mode Support */
[data-theme="dark"] {
    --primary-color: #38b6ff; /* Lighter blue for dark mode contrast */
    --secondary-color: #60a5fa;
    --accent-color: #38b6ff;
    --dark-color: #f7fafc; /* Inverted for text */
    --light-color: #1a202c; /* Dark background */
    --text-color: #e2e8f0;
    --gradient: linear-gradient(135deg, #1e3a8a, #2563eb);
    
    /* Specific overrides */
    background-color: #111827;
    color: var(--text-color);
}

[data-theme="dark"] header {
    background: #1a202c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card, 
[data-theme="dark"] .pricing-card, 
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .result-content {
    background: #2d3748;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .result-text, 
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
    background-color: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] .form-control:focus, 
[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color);
    background-color: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .generator,
[data-theme="dark"] .pricing,
[data-theme="dark"] .features {
    background-color: #111827;
}

[data-theme="dark"] .how-it-works,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .result-container {
    background-color: #1a202c;
}

[data-theme="dark"] .secondary-button {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .secondary-button:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] footer {
    background: #0f172a;
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .btn-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .btn-link:hover {
    color: var(--primary-color) !important;
}

/* Settings Page Styles */
.settings-page-wrapper {
    background: var(--light-color);
    padding: 80px 0;
    margin-top: 80px; /* Offset for fixed header */
}

.settings-section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 40px; /* Spacing from the top */
}

.settings-section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.settings-section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0; /* Subtle border */
}

.settings-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header-gradient {
    height: 8px;
    background: var(--gradient);
    width: 100%;
}

.card-content-wrapper {
    padding: 2.5rem;
}

.card-title-group {
    text-align: center;
    margin-bottom: 2rem;
}

.card-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.card-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.card-subtitle-text {
    color: var(--text-color);
    font-size: 0.95rem;
}

.profile-photo-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-photo-display {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #edf2f7;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.profile-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-display .fa-user {
    font-size: 4rem;
    color: #a0aec0;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-photo-display:hover .upload-overlay {
    opacity: 1;
}

.upload-photo-label {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
}

.upload-photo-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.form-group-settings {
    margin-bottom: 1.8rem;
}

.form-label-settings {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.form-input-settings {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.form-input-settings:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

.form-input-settings::placeholder {
    color: #a0aec0;
}

.save-changes-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 1.5rem;
}

.save-changes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.alert-modern {
    background-color: white;
    border-left: 5px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.alert-modern .alert-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.alert-modern strong {
    color: var(--dark-color);
}

.info-box {
    background: linear-gradient(90deg, #e0f2f7, #f0fafd);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.info-box-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-right: 1rem;
    position: relative;
    top: 3px;
}

.info-box-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.add-item-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.items-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-item-card {
    background: #fdfefe;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.list-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.list-item-card:hover::before {
    transform: translateX(0);
}

.list-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.list-item-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.list-item-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0;
    flex-grow: 1;
}

.list-item-actions {
    position: relative;
}

.list-item-action-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.list-item-action-btn:hover {
    color: var(--primary-color);
}

.list-item-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: #fdfefe;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    margin-top: 2rem;
    grid-column: 1 / -1; /* Span full width in grid */
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modal-content-custom {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header-custom {
    background: var(--gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.modal-title-custom {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.modal-close-btn-custom {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.8rem;
}

.modal-close-btn-custom:hover {
    opacity: 1;
}

.modal-body-custom {
    padding: 2rem;
}

.modal-footer-custom {
    padding: 1.5rem 2rem;
    background: #f7fafc;
    border-top: 1px solid #edf2f7;
}

.form-textarea-settings {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.form-textarea-settings:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

/* Dark Mode Overrides for Settings Page */
[data-theme="dark"] .settings-page-wrapper {
    background: #1a202c;
}

[data-theme="dark"] .settings-section-title h2 {
    color: var(--dark-color); /* This will be light in dark mode */
}

[data-theme="dark"] .settings-section-title p {
    color: var(--text-color);
}

[data-theme="dark"] .settings-card {
    background: #2d3748;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-color: #4a5568;
}

[data-theme="dark"] .settings-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-icon-circle {
    background: var(--gradient);
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .card-main-title {
    color: var(--dark-color);
}

[data-theme="dark"] .card-subtitle-text {
    color: var(--text-color);
}

[data-theme="dark"] .profile-photo-display {
    background-color: #4a5568;
    border-color: #1a202c;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.2);
}

[data-theme="dark"] .profile-photo-display .fa-user {
    color: #718096;
}

[data-theme="dark"] .upload-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .upload-photo-label {
    background: var(--gradient);
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .upload-photo-label:hover {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .form-label-settings {
    color: var(--dark-color);
}

[data-theme="dark"] .form-input-settings,
[data-theme="dark"] .form-textarea-settings {
    background-color: #4a5568;
    border-color: #616e7f;
    color: var(--dark-color);
}

[data-theme="dark"] .form-input-settings:focus,
[data-theme="dark"] .form-textarea-settings:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.2);
    background-color: #4a5568;
}

[data-theme="dark"] .form-input-settings::placeholder,
[data-theme="dark"] .form-textarea-settings::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .save-changes-btn {
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .save-changes-btn:hover {
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .alert-modern {
    background-color: #2d3748;
    border-left-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .alert-modern .alert-icon {
    color: var(--primary-color);
}

[data-theme="dark"] .alert-modern strong {
    color: var(--dark-color);
}

[data-theme="dark"] .info-box {
    background: linear-gradient(90deg, #1f2937, #2d3748);
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .info-box-icon {
    color: var(--accent-color);
}

[data-theme="dark"] .info-box-text {
    color: var(--text-color);
}

[data-theme="dark"] .add-item-btn {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .add-item-btn:hover {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .items-list-grid {
    /*background: #1a202c; */
    border-color: #4a5568;
}

[data-theme="dark"] .list-item-card {
    background: #1a202c;
    border-color: #4a5568;
}

[data-theme="dark"] .list-item-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

[data-theme="dark"] .list-item-card::before {
    background: var(--primary-color);
}

[data-theme="dark"] .list-item-icon {
    background: var(--primary-color);
}

[data-theme="dark"] .list-item-title {
    color: var(--dark-color);
}

[data-theme="dark"] .list-item-action-btn {
    color: #a0aec0;
}

[data-theme="dark"] .list-item-action-btn:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .list-item-description {
    color: var(--text-color);
}

[data-theme="dark"] .empty-state-card {
    background: #1a202c;
    border-color: #4a5568;
}

[data-theme="dark"] .empty-state-icon {
    color: #718096;
}

[data-theme="dark"] .empty-state-title {
    color: var(--dark-color);
}

[data-theme="dark"] .empty-state-text {
    color: var(--text-color);
}

[data-theme="dark"] .modal-content-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-header-custom {
    background: var(--gradient);
}

[data-theme="dark"] .modal-body-custom {
    background-color: #2d3748;
}

[data-theme="dark"] .modal-footer-custom {
    background: #1a202c;
    border-top-color: #4a5568;
}

/* Settings Page Styles */
.settings-page-wrapper {
    background: var(--light-color);
    padding: 80px 0;
    margin-top: 80px; /* Offset for fixed header */
}

.settings-section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 40px; /* Spacing from the top */
}

.settings-section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.settings-section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0; /* Subtle border */
}

.settings-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header-gradient {
    height: 8px;
    background: var(--gradient);
    width: 100%;
}

.card-content-wrapper {
    padding: 2.5rem;
}

.card-title-group {
    text-align: center;
    margin-bottom: 2rem;
}

.card-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.card-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.card-subtitle-text {
    color: var(--text-color);
    font-size: 0.95rem;
}

.profile-photo-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-photo-display {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #edf2f7;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.profile-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-display .fa-user {
    font-size: 4rem;
    color: #a0aec0;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-photo-display:hover .upload-overlay {
    opacity: 1;
}

.upload-photo-label {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
}

.upload-photo-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.form-group-settings {
    margin-bottom: 1.8rem;
}

.form-label-settings {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.form-input-settings {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.form-input-settings:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

.form-input-settings::placeholder {
    color: #a0aec0;
}

.save-changes-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 1.5rem;
}

.save-changes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.alert-modern {
    background-color: white;
    border-left: 5px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.alert-modern .alert-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.alert-modern strong {
    color: var(--dark-color);
}

.info-box {
    background: linear-gradient(90deg, #e0f2f7, #f0fafd);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.info-box-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-right: 1rem;
    position: relative;
    top: 3px;
}

.info-box-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.add-item-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.items-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-item-card {
    background: #fdfefe;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.list-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.list-item-card:hover::before {
    transform: translateX(0);
}

.list-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.list-item-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.list-item-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0;
    flex-grow: 1;
}

.list-item-actions {
    position: relative;
}

.list-item-action-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.list-item-action-btn:hover {
    color: var(--primary-color);
}

.list-item-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: #fdfefe;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    margin-top: 2rem;
    grid-column: 1 / -1; /* Span full width in grid */
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modal-content-custom {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header-custom {
    background: var(--gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.modal-title-custom {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.modal-close-btn-custom {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.8rem;
}

.modal-close-btn-custom:hover {
    opacity: 1;
}

.modal-body-custom {
    padding: 2rem;
}

.modal-footer-custom {
    padding: 1.5rem 2rem;
    background: #f7fafc;
    border-top: 1px solid #edf2f7;
}

.form-textarea-settings {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.form-textarea-settings:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

/* Dark Mode Overrides for Settings Page */
[data-theme="dark"] .settings-page-wrapper {
    background: #1a202c;
}

[data-theme="dark"] .settings-section-title h2 {
    color: var(--dark-color); /* This will be light in dark mode */
}

[data-theme="dark"] .settings-section-title p {
    color: var(--text-color);
}

[data-theme="dark"] .settings-card {
    background: #2d3748;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-color: #4a5568;
}

[data-theme="dark"] .settings-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-icon-circle {
    background: var(--gradient);
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .card-main-title {
    color: var(--dark-color);
}

[data-theme="dark"] .card-subtitle-text {
    color: var(--text-color);
}

[data-theme="dark"] .profile-photo-display {
    background-color: #4a5568;
    border-color: #1a202c;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.2);
}

[data-theme="dark"] .profile-photo-display .fa-user {
    color: #718096;
}

[data-theme="dark"] .upload-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .upload-photo-label {
    background: var(--gradient);
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .upload-photo-label:hover {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .form-label-settings {
    color: var(--dark-color);
}

[data-theme="dark"] .form-input-settings,
[data-theme="dark"] .form-textarea-settings {
    background-color: #4a5568;
    border-color: #616e7f;
    color: var(--dark-color);
}

[data-theme="dark"] .form-input-settings:focus,
[data-theme="dark"] .form-textarea-settings:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.2);
    background-color: #4a5568;
}

[data-theme="dark"] .form-input-settings::placeholder,
[data-theme="dark"] .form-textarea-settings::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .save-changes-btn {
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .save-changes-btn:hover {
    box-shadow: 0 10px 20px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .alert-modern {
    background-color: #2d3748;
    border-left-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .alert-modern .alert-icon {
    color: var(--primary-color);
}

[data-theme="dark"] .alert-modern strong {
    color: var(--dark-color);
}

[data-theme="dark"] .info-box {
    background: linear-gradient(90deg, #1f2937, #2d3748);
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .info-box-icon {
    color: var(--accent-color);
}

[data-theme="dark"] .info-box-text {
    color: var(--text-color);
}

[data-theme="dark"] .add-item-btn {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.3);
}

[data-theme="dark"] .add-item-btn:hover {
    box-shadow: 0 5px 15px rgba(56, 182, 255, 0.4);
}

[data-theme="dark"] .items-list-grid {
    background: #1a202c; /* No background in the original, this might be redundant or a fix */
    border-color: #4a5568;
}

[data-theme="dark"] .list-item-card {
    background: #1a202c;
    border-color: #4a5568;
}

[data-theme="dark"] .list-item-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

[data-theme="dark"] .list-item-card::before {
    background: var(--primary-color);
}

[data-theme="dark"] .list-item-icon {
    background: var(--primary-color);
}

[data-theme="dark"] .list-item-title {
    color: var(--dark-color);
}

[data-theme="dark"] .list-item-action-btn {
    color: #a0aec0;
}

[data-theme="dark"] .list-item-action-btn:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .list-item-description {
    color: var(--text-color);
}

[data-theme="dark"] .empty-state-card {
    background: #1a202c;
    border-color: #4a5568;
}

[data-theme="dark"] .empty-state-icon {
    color: #718096;
}

[data-theme="dark"] .empty-state-title {
    color: var(--dark-color);
}

[data-theme="dark"] .empty-state-text {
    color: var(--text-color);
}

[data-theme="dark"] .modal-content-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-header-custom {
    background: var(--gradient);
}

[data-theme="dark"] .modal-body-custom {
    background-color: #2d3748;
}

[data-theme="dark"] .modal-footer-custom {
    background: #1a202c;
    border-top-color: #4a5568;
}
