/* --- General & Theme Styles --- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    color: #343a40; /* Darker gray for text */
    background-color: #f8f9fa; /* Off-white background */
}

h1, h2, h3, h4, h5, h6, .display-4, .display-5 {
    font-weight: 700;
    color: #544837; /* Earthy brown for headings */
}

.btn-primary {
    background-color: #a37c54; /* Primary button color */
    border-color: #a37c54;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #8c6847; /* Darker shade for hover */
    border-color: #8c6847;
}

.social-icon {
    height: 24px;
    width: 24px;
}

input:disabled,
input:read-only {
    cursor: default;
}

/* --- Navigation Bar --- */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: 700;
    color: #544837 !important;
}

.navbar-nav .nav-link {
    color: #544837 !important;
    font-weight: 600;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #a37c54 !important;
}

/* --- Sections & Scrolling --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px; /* Offset for fixed navbar height */
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#hero {
    background-color: #f8f0e3; /* Warm off-white for hero */
}

footer {
    background-color: #544837 !important; /* Match heading color */
}

/* --- Form Styling ---*/
.form-label {
    font-weight: 600;
}

.form-control::placeholder {
    color: #999
}

/* --- Dialogue Box ---*/
.dialogue {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.dialogue-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 20%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Navigation Buttons --- */
.button-link {
    /* Make the link look and feel like a button */
    display: inline-block;
    padding: 10px 20px;
    background-color: #a37c54;
    color: white;
    text-align: center;
    text-decoration: none; /* Removes the underline from the link */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-link:hover {
    background-color: #8c6847;
}

/* --- Table Styling --- */
.total-expense-row {
    background-color: rgba(219, 20, 60, 0.404) !important;
}

.total-income-row {
    background-color: rgba(20, 219, 80, 0.404) !important;
}

.profit-loss {
    background-color: rgba(219, 20, 60, 0.404) !important;
}

.profit-gain {
    background-color: rgba(20, 219, 80, 0.404) !important;
}