/* Finance Manager - Home Page Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5 !important;
    padding: 0;
    margin: 0;
}

/* Banner Image */
.banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Navigation Bar */
.nav-bar {
    background-color: #2c5f7f;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    opacity: 0.8;
    background-color: rgba(255,255,255,0.1);
}

.nav-links a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content {
    padding: 40px 30px;
}

/* Typography */
h1 {
    color: #2c5f7f;
    font-size: 2.8em;
    margin-bottom: 15px;
    border-bottom: 3px solid #2c5f7f;
    padding-bottom: 15px;
}

.subtitle {
    font-size: 1.3em;
    color: #666;
    font-weight: 300;
    margin-bottom: 30px;
}

h2 {
    color: #2c5f7f;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
}

h3 {
    color: #2c5f7f;
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 12px;
}

h4 {
    color: #2c5f7f;
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    color: #555;
}

/* Links */
a {
    color: #2c5f7f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: #2c5f7f;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background-color: #f8f9fa;
    border-left: 4px solid #2c5f7f;
    padding: 25px;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-card ul {
    margin-left: 20px;
    margin-top: 15px;
}

.feature-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pricing-card {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #2c5f7f;
    border-width: 3px;
}

.pricing-card.premium {
    border-color: #764ba2;
    border-width: 3px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff8ff 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #2c5f7f;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.pricing-card h3 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.price {
    font-size: 3em;
    font-weight: bold;
    color: #2c5f7f;
    margin: 15px 0;
}

.price span {
    font-size: 0.4em;
    color: #666;
    font-weight: normal;
}

.price-yearly {
    font-size: 0.9em;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    margin-left: 0;
    text-align: left;
    margin-top: 20px;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #2c5f7f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: #1e4a63;
    transform: translateY(-2px);
    border-bottom-color: transparent;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Info Boxes */
.info-box {
    background-color: #e8f4f8;
    border-left: 4px solid #2c5f7f;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.info-box h4 {
    margin-top: 0;
}

.info-box p {
    margin-bottom: 0;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.success-box {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.error-box {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: #2c5f7f;
    color: white;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

/* Footer */
.footer {
    background-color: #1a3a4d;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
    border-top: 4px solid #2c5f7f;
}

.footer p {
    color: #ffffff;
    margin: 12px 0;
    font-size: 0.95em;
    line-height: 1.8;
}

.footer p:first-child {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.footer strong {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
}

.footer a {
    color: #66b3ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

.footer a:hover {
    color: #ffffff;
    border-bottom-color: #66b3ff;
    background-color: rgba(102, 179, 255, 0.1);
}

.footer p:last-child {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    .content {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-brand {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .price {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }

    .price {
        font-size: 2.2em;
    }
}

/* Force Light Mode - No Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #f5f5f5 !important;
        color: #333 !important;
    }

    .container {
        background-color: white !important;
        color: #333 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #2c5f7f !important;
    }

    p, li {
        color: #555 !important;
    }
}

/* Scrollbar Styling (Webkit browsers) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c5f7f;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e4a63;
}