/* Basic styling */
body {
    font-family: Arial, Arial;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF; /* White background */
}
/* Centered layout for login page */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}
/* Logo container styling */
.logo-container {
    text-align: center;
    margin-bottom: 60px; /* Space between logo and login box */
}
.logo-container img {
    max-width: 1600px; /* Adjust image size */
    height: auto;
}
/* Login container styling */
.login-container {
    width: 280px; /* Smaller width */
    padding: 15px; /* Adjusted padding */
    background: #b8b8b8; /* Grey background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px; /* Rounded corners for aesthetic */
}
.login-container input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px; /* Rounded input fields */
    box-sizing: border-box;
}
.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #317a9b; /* Blue button */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px; /* Button with rounded corners */
    font-size: 14px; /* Adjusted font size */
}
.login-container button:hover {
    background-color: #265f78; /* Darker blue for hover */
}
/* Navbar styling */
.navbar {
    background: linear-gradient(to right, #FFFFFF, #808080); /* Gradient from white to medium grey */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Push buttons to the right */
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    position: fixed; /* Fix navbar to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure navbar stays above other content */
}
.navbar .logo {
    position: absolute;
    top: 10px;
    left: 20px;
    max-height: 50px; /* Adjust logo size */
}
.navbar-buttons {
    display: flex;
    align-items: center;
}
.navbar button {
    background-color: #317a9b; /* Blue button */
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.navbar button:hover {
    background-color: #265f78; /* Darker blue for hover */
}
.logout {
    color: white;
    background-color: #317a9b; /* Blue logout */
    padding: 10px 15px;
    margin-left: 5px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.logout:hover {
    background-color: #265f78; /* Darker blue for hover */
}
/* Excel-like table styling */
.excel-table-container {
    margin: 80px auto 20px; /* Space below fixed navbar */
    width: 90%;
    max-width: 1200px;
}
.table-controls {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.table-controls button {
    background-color: #317a9b; /* Blue button */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.table-controls button:hover {
    background-color: #265f78; /* Darker blue for hover */
}
.table-controls input {
    padding: 8px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
}
.table-controls #calculationResult {
    font-size: 14px;
    color: #317a9b;
}
.excel-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF; /* White table background for Excel look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.excel-table th {
    background-color: #317a9b; /* Blue header */
    color: white;
    padding: 10px;
    text-align: left;
    border: 1px solid #b8b8b8; /* Grey borders */
    font-size: 14px;
}
.excel-table td {
    padding: 10px;
    border: 1px solid #b8b8b8; /* Grey borders */
    font-size: 14px;
}
.excel-table td[contenteditable]:hover {
    background-color: #E0E0E0; /* Light grey on hover for editable cells */
}
.excel-table tr:nth-child(even) {
    background-color: #F5F5F5; /* Off-white for alternating rows */
}
.excel-table tr:hover {
    background-color: #E0E0E0; /* Light grey on row hover */
}
.excel-table .btn-delete {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    background-color: #f44336; /* Red for delete */
    color: white;
}
.excel-table .btn-delete:hover {
    background-color: #d32f2f; /* Darker red for hover */
}
/* Error message styling */
.error {
    color: red;
}