/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f8fc;  /* light, airy background */
    color: #333;
    line-height: 1.6;
}

/* Container for general pages */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #007BFF;  /* header background */
    padding: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Headings */
h2 {
    margin-bottom: 20px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background-color: #007BFF;
    color: #fff;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Highlight for debit and credit rows */
.debit {
    background-color: #f8d7da; /* soft red */
    color: #721c24;
}

.credit {
    background-color: #d4edda; /* soft green */
    color: #155724;
}

/* Form Styling for Entry Forms */
form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 15px;
    background: #f9f9f9;
    transition: background 0.3s, border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="date"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form textarea:focus,
form select:focus {
    background: #fff;
    border-color: #007BFF;
}

form input[type="submit"],
form button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

form input[type="submit"]:hover,
form button:hover {
    background: #0056b3;
}

/* Message styling for errors and success */
.error-message {
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}

.success-message {
    color: green;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Styling for the current client selection banner */
.client-selection-banner {
    background: #e7f3fe;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #b3d7ff;
    border-radius: 3px;
}

.client-selection-banner a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.client-selection-banner a:hover {
    text-decoration: underline;
}

/* Responsive styling */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}
