/* Styles for dashboard-specific components */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.nav-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0f0ff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    min-height: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    background: rgba(0, 198, 255, 0.15);
    transform: translateY(-5px);
}

.nav-button.unlinked {
    cursor: not-allowed;
    color: #8a9ba8;
    background: rgba(0, 0, 0, 0.1);
}

.nav-button .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00c6ff;
}

.nav-button.unlinked .icon {
    color: #6c757d;
}

/* Notification Badge Styles */
/* ## MODIFICATION: Made badge flexible to handle larger numbers ## */
.notification-badge {
    position: absolute;
    top: 6px;
    right: -22px;
    color: white;
    border-radius: 50px; /* Creates a pill shape when width increases */
    height: 44px;
    min-width: 44px; /* Ensures it's a circle for 1-2 digits */
    padding: 0 8px; /* Adds horizontal space for numbers */
    box-sizing: border-box; /* Ensures padding is included in the size */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    border: 3px solid white;
}

/* Red badge for alerts/rejected items */
.notification-badge.badge-alert {
    background-color: #e74c3c;
}

/* Green badge for ok/pending items */
.notification-badge.badge-ok {
    background-color: #28a745;
}

/* Gray badge for neutral/informational counts */
.notification-badge.badge-neutral {
    background-color: #6c757d;
}

/* Second badge positioned below the first */
.notification-badge.badge-stacked {
    top: 58px;
    right: -22px;
}

/* Styles for the Admin Actions section */
.admin-actions {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.admin-actions h3 {
    margin-top: 0;
    color: #00c6ff;
}

.admin-actions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-actions ul li a {
    color: #e0f0ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-actions ul li a:hover {
    background: #00c6ff;
    color: #051421;
}

/* Ensure container supports grid layout and adds gap from header */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* Footer styles */
.footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    color: #e0f0ff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer p {
    margin: 0;
}

/* Clock styles */
.datetime {
    font-size: 1.2em; /* Increased from default */
    font-weight: 600;
    color: #e0f0ff;
    text-align: right;
    font-family: 'Poppins', sans-serif;
}

#live-time {
    display: inline-block;
    font-size: 1.8em; /* Larger time display */
    font-weight: 700;
    color: #00c6ff; /* Bright cyan for visibility */
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.5); /* Subtle glow */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Smooth animation */
}

/* Pulse animation for clock */
#live-time.pulse {
    transform: scale(1.05); /* Slight scale-up effect */
    opacity: 0.85; /* Subtle fade */
}