﻿.dashboard-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 190px;
}

    .dashboard-card i {
        font-size: 32px;
        margin-bottom: 8px;
    }

.dashboard-stat {
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}
/* Ensure label alignment without affecting card height */
.dashboard-subtext {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure "For Approval" label size and spacing matches */
.approval-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 190px;
}

    .approval-card i {
        font-size: 32px;
        margin-bottom: 8px;
    }

.approval-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

    .approval-section:last-child {
        border-bottom: none;
    }

/* Convert Leave and Overtime text into clickable hyperlinks */
.approval-title a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #007bff;
}

    .approval-title a:hover {
        text-decoration: underline;
    }

.approval-count {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.collapse-info {
    display: none; /* Hide initially */
    position: absolute;
    top: 105%; /* Position below the icon */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Ensures it scales within parent */
    max-width: 300px; /* Adjust width as needed */
    min-width: 250px; /* Ensures tooltip has a minimum size */
    height: auto; /* Allow content to define height */
    min-height: 50px; /* Ensures a minimum height */
    white-space: normal; /* Allows text wrapping */
    word-wrap: break-word; /* Ensures text doesn't overflow */
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Ensures it appears above other elements */
}

span:hover .collapse-info {
    display: block; /* Show tooltip on hover */
}


.dashboard-card:hover .collapse-info {
    display: block; /* Show tooltip on hover */
}
