/* General styles */
body {
    font-family: "Roboto", sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin: 10px 0px;
}

main {
    flex: 1;
    min-height: auto;
}

.total-maintenance {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.total-maintenance .total-month,
.total-maintenance .total-year {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 45%;
}

.total-maintenance h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.total-maintenance p {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.search-form,
.export-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-form button,
.export-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form .button-secondary {
    background-color: #6c757d; /* Secondary button color */
}

.search-form button:hover,
.export-form button:hover,
.search-form .button-secondary:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Light background for the table */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensure rounded corners apply to the entire table */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a professional look */
}

table thead tr {
    background: linear-gradient(0deg, #667eea, #764ba2);
}

table th {
    color: #fff; /* White text for contrast */
    font-weight: normal;
    text-transform: none; /* Uppercase for a clean look */
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #357ab7; /* Slightly darker border for separation */
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Subtle border for row separation */
    color: #333; /* Standard text color */
}

table tr:nth-child(even) {
    background-color: #f1f5f9; /* Alternating row color for readability */
}

table tr:hover {
    background-color: #eaf3fc; /* Highlight row on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.pagination a,
.pagination span {
    color: #333;
    padding: 6px 10px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.notification {
    background-color: #d4edda; /* Success background color */
    color: #155724; /* Success text color */
    border: 1px solid #c3e6cb; /* Success border color */
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    min-width: 600px; /* Adjust this value as needed */
}

/* Responsive styles */
@media (max-width: 768px) {
    .total-maintenance {
        flex-direction: column;
        align-items: center;
    }

    .total-maintenance .total-month,
    .total-maintenance .total-year {
        width: 100%;
        margin-bottom: 20px;
    }

    .search-form,
    .export-form {
        flex-direction: column;
        align-items: center;
    }

    .search-form select,
    .search-form button,
    .export-form button {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .search-form input {
        width: 94%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    table th,
    table td {
        padding: 5px;
    }
}
