/* General Body and Typography */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f7fa; /* Light neutral background */
    color: #333; /* Darker text for readability */
    padding: 20px;
    margin: auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #524946; /* Dark grey for headings */
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2rem;
    font-weight: bold;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.6rem;
}

/* Input and Form Styling */
input, textarea, button, select {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #8b7265; /* Muted brown */
    box-shadow: 0 0 5px rgba(139, 114, 101, 0.4);
    outline: none;
}

/* Message Boxes */
.error, .success {
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.error {
    color: #d9534f;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

/* Buttons */
button, input[type="submit"], input[type="button"] {
    background-color: #1e73be; /* Blue background */
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #145a86; /* Darker blue */
}



/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px;
}

/* Dashboard Section */
.dashboard-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* Dashboard Section Headings */
.dashboard-section h3 {
    margin-bottom: 10px;
    color: #524946; /* Dark grey */
}

/* Dashboard Buttons */
.dashboard-btn {
    background-color: #1e73be; /* Blue */
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
}
/* Dashboard Buttons */
.dashboard-btn-hold {
    background-color: #939393; /* Blue */
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.dashboard-btn:hover {
    background-color: #145a86; /* Darker blue */
    transform: scale(1.05);
}

/* Button Grid Layout */
.button-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive button layout */
}

/* Invoice Table */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th, .invoice-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.invoice-table th {
    background-color: #1e73be; /* Blue */
    color: white;
}

.invoice-table td.overdue {
    color: #d9534f; /* Red */
}

.invoice-table td.paid {
    color: #28a745; /* Green */
}

/* Notifications Styling */
.notifications ul {
    list-style-type: none;
    padding-left: 0;
}

.notifications li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f1f5f9; /* Light background */
    border-radius: 5px;
    border-left: 4px solid #1e73be; /* Blue bar */
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .dashboard-btn {
        font-size: 0.9rem;
        padding: 8px 10px; /* Adjust button padding */
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .navbar, button, input[type="submit"], input[type="button"] {
        display: none;
    }

    h1, h2, h3 {
        page-break-before: always;
    }

    .error, .success {
        border: none;
        padding: 0;
    }
}

/* Header Styling */
header {
    background-color: transparent; /* Transparent background for logo area */
    padding: 20px 0;
    text-align: center; /* Centering content */
}

/* Centering the logo */
.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
}

/* Navigation Bar Styling */
.navbar {
    background-color: #1e73be; /* Blue background for the navbar */
    padding: 10px 0;
}

.navbar ul {
    display: flex;
    justify-content: center; /* Center the nav items */
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 15px; /* Space between nav items */
}

.navbar a {
    text-decoration: none;
    color: white; /* White text for links */
    font-size: 1rem;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
    background-color: #145a86; /* Darker blue hover effect */
    color: #fff; /* Ensure text stays white on hover */
}



/* Forms and Inputs */
form {
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
    color: #333; /* Darker text for labels */
}

form input, form textarea, form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: #1e73be; /* Blue border on focus */
    box-shadow: 0 0 5px rgba(30, 115, 190, 0.4);
    outline: none;
}

/* Submit Button */
form button, form input[type="submit"], form input[type="button"] {
    background-color: #1e73be; /* Blue button */
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover, form input[type="submit"]:hover, form input[type="button"]:hover {
    background-color: #145a86; /* Darker blue */
}
/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #1e73be; /* Blue header */
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f5f7fa; /* Light background for alternate rows */
}

table tr:hover {
    background-color: #e9ecef; /* Light grey hover */
}

/* Links Inside Tables */
table a {
    color: #1e73be; /* Blue links */
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
    color: #145a86; /* Darker blue on hover */
}
/* General Button Styling */
button, .btn {
    background-color: #1e73be; /* Blue background */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #145a86; /* Darker blue on hover */
}

/* Links Styling */
a {
    color: #1e73be; /* Blue links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #145a86; /* Darker blue on hover */
    text-decoration: underline;
}
/* Button Group Layout */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
    margin-top: 15px;
}

/* Button Alignment */
.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}
/* Responsive Forms and Buttons */
@media (max-width: 768px) {
    form input, form textarea, form select {
        width: 100%; /* Ensure form elements are full width */
    }

    button, .btn {
        width: 100%;
        padding: 10px; /* Adjust button padding for mobile */
    }

    .button-group {
        justify-content: center; /* Center buttons in mobile view */
    }

    .navbar ul {
        flex-direction: column; /* Stack navbar items */
    }

    .navbar a {
        text-align: center;
        padding: 12px; /* Adjust navbar padding for mobile */
    }
}
