/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9; /* Light background */
    color: #333; /* Dark text */
}

/* Header */
header {
    background: #444; /* Medium grey */
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: #666;
}

/* Hamburger Menu (for smaller screens) */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #444;
        padding: 20px;
        position: absolute;
        top: 50px;
        right: 20px;
        width: 200px;
        border-radius: 10px;
    }

    nav ul.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
}

.card h2 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.2rem;
    color: #666;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th, table td {
    border: 1px solid #ddd; /* Light grey border */
    padding: 10px;
    text-align: left;
}

table th {
    background: #f5f5f5; /* Very light grey */
}

table tr:nth-child(even) {
    background: #f9f9f9; /* Alternate row background */
}

/* Responsive Table */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Buttons */
button {
    padding: 10px 20px;
    background: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #666;
}


.expiring-soon {
    animation: blink 1.5s linear infinite;
}

/* Blinking animation */
@keyframes blink {
    0% {
        background-color: #ffcc80; /* Light orange */
    }
    50% {
        background-color: #ffc107; /* Bright orange */
    }
    100% {
        background-color: #ffcc80; /* Light orange */
    }
}

