/* Custom styles for the invoicing system */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern sans-serif font stack */
    background-color: #f8f9fa; /* Light grey background for general pages */
    color: #212529; /* Default text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles for authentication pages (login, signup) */
body.body-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Example gradient background */
    padding: 2rem; /* Add some padding for smaller screens */
    flex-grow: 1;
}

.auth-card {
    max-width: 420px; 
    width: 100%;
    padding: 2rem 2.5rem; /* Increased padding */
    margin: auto;
    background-color: #fff;
    border-radius: 0.75rem; /* Slightly more rounded corners */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); /* Softer, more prominent shadow */
    border: none; /* Remove default border if any */
}

.auth-card .card-title {
    font-weight: 300; /* Lighter font weight for title */
    font-size: 1.75rem; /* Larger title */
    color: #333;
}

/* Navbar enhancements */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); 
}

.navbar-brand {
    font-weight: 500;
}

.nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link.active {
    font-weight: 500;
}

/* Card enhancements */
.card {
    border: none; 
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05); 
    margin-bottom: 1.5rem; 
}

.card-header {
    background-color: #f8f9fa; 
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
}

/* Button enhancements */
.btn {
    border-radius: 0.25rem; 
}

/* Table enhancements */
.table thead th {
    background-color: #e9ecef; 
    border-bottom-width: 1px;
    font-weight: 500;
    color: #495057;
}

/* Form enhancements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Page Title */
h1, .h1 {
    color: #343a40;
    margin-bottom: 1.5rem; 
    font-weight: 500;
}
h2, .h2 {
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Main content area */
.main-content {
    flex-grow: 1;
}

/* Footer styling */
.footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes footer to bottom if content is short */
}

.footer a {
    color: #f8f9fa;
}

.footer a:hover {
    color: #dee2e6;
}

/* Responsive adjustments for auth card if needed */
@media (max-width: 576px) {
    .auth-card {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    body.body-auth {
        padding: 1rem; /* Less padding on very small screens */
    }
}

/* Dashboard card specific styling */
.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.dashboard-card .card-text.fs-4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-text {
    font-size: 0.95rem;
}

.dashboard-card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Utility for slightly more prominent badges */
.badge {
    padding: 0.4em 0.65em;
    font-size: 0.85em;
}
