:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 10;
    padding: 0;
    background-color: var(--light-bg);
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}



/* Upload Form Styles */
.upload-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group input[type="file"] {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-group input[type="password"] {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-group input[type="email"] {
    width: 90%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto; /* Add this */
    display: block; /* Add this */
    margin: 1rem 0; /* Add this */
}

.btn:hover {
    background-color: #2980b9;
}

/* Profile Page */
.receipts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.receipt-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer {

    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    /* Change from fixed to static positioning */
    position: relative;
    
    margin-top: auto; /* Pushes footer to bottom */

}

/* Auth Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.alert {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 1.5rem;
    margin: 1.5rem 0;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--dark-text);
}

/* Buttons */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: var(--primary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

.search-container {
       padding: 2rem;
       width: 90%;
 }

.profile-container {
       padding: 2rem;
       width: 90%;
 }

/* Add to styles.css */
@media (max-width: 768px) {
    .receipts-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .receipt-card {
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .search-container {
        padding: 1rem;
    }

    .search-container .form-group {
        flex-direction: column;
    }

    .search-container input[type="date"],
    .search-container input[type="number"] {
        width: 90%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .upload-container {
        margin: 1rem;
        padding: 1rem;
    }

    .form-group input[type="file"] {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 1rem;
        padding: 1rem;
    }

    .alert {
        font-size: 14px;
    }

    .nav-links {
        top: 50px;
    }
}

@media (max-width: 768px) {
    .preview-container {
        margin: 1rem;
        padding: 1rem;
    }

    embed {
        height: 400px;
    }

    .receipt-details {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 1rem;
        padding: 1rem;
    }

    input[type="email"],
    input[type="text"] {
        font-size: 16px; /* Better for mobile keyboards */
    }
}

img {
    max-width: 100%;
    height: auto;
    touch-action: manipulation;
}

/* Header Mobile Styles */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    top: 0;
  
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;

      text-decoration: none; /* remove underline */
  color: inherit;        /* keep whatever color your logo should be */
}

.menu-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }

/* Active state for menu toggle */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.nav-links {
    position: absolute;
    top: 60px;
    left: -100%;
    width: 100%;

    background: var(--primary-color);
    flex-direction: column;
    transition: 0.3s;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-links.active {
    left: 0;
}

.nav-links a {
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links a i {
    margin-right: 15px;
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        display: flex;
        left: 0;
    }
    
    .nav-links a {
        border-bottom: none;
        padding: 0 15px;
        height: 60px;
        display: flex;
        align-items: center;
    }
    
    .nav-links a i {
        display: none;
    }
  
}

/* Add to styles.css */
.search-error {
    color: #dc3545;
    padding: 1rem;
    background: #f8d7da;
    border-radius: 4px;
    margin: 1rem 0;
}

.date-range, .amount-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .date-range, .amount-range {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 80%;
    }
}

/* Add to styles.css */
.links {
    margin-top: 1rem;
    text-align: center;
    background: var(--primary-color);
    padding: 0.8rem 1.5rem;
}

.links a {
    color: white;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.policy-container, .disclaimer-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.section h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.section ul {
    padding-left: 2rem;
    margin: 1rem 0;
}

.section li {
    margin: 0.5rem 0;
}

.contact-section {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    margin: 2rem auto;
    border-radius: 8px;
}

.footer-links {
    display: ruby;

    background: var(--primary-color);
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
    overflow-y: auto;
}

.footer-links.active {
    left: 0;
}

.footer-links a {
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a i {
    margin-right: 15px;
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.footer-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 50px;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.commitment-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.commitment-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
}   

.home-link {
  font-size: 0.9em;
  margin-left: 10px;

  text-align: center;
}