/* Custom styles to complement Tailwind CSS */

/* Uptime Progress Bar */
.progress-bar {
    background-color: #e9ecef;
    border-radius: 0.375rem; /* rounded-md */
    overflow: hidden;
    height: 10px;
    width: 100%;
}

.progress-bar-inner {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Table to Cards */
@media (max-width: 768px) {
    #proxy-table-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    table thead {
        display: none;
    }

    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table tr {
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        overflow: hidden;
        background-color: #fff;
    }

    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    table td:last-child {
        border-bottom: none;
    }

    table td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
    }
}
