/* 
 * nMon Public Page Table Styling
 * Modern table styling for the public status page
 */

/* Common Table Styling */
.public-page .box-primary {
    margin-bottom: 30px;
}

.public-page .table-container {
    border-radius: 4px;
    overflow: hidden;
}

.public-page .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: #fff;
}

.public-page .table > thead > tr > th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 10px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.public-page .table > tbody > tr > td {
    padding: 15px 10px;
    border-top: 1px solid #f2f2f2;
    vertical-align: middle;
}

/* Status Icons */
.public-page .fa-circle {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.public-page .fa-circle:hover {
    transform: scale(1.2);
}

.public-page .fa-circle.text-green {
    color: #00c853;
    filter: drop-shadow(0 0 3px rgba(0, 200, 83, 0.4));
}

.public-page .fa-circle.text-yellow {
    color: #ffc107;
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.4));
}

.public-page .fa-circle.text-red {
    color: #f44336;
    filter: drop-shadow(0 0 3px rgba(244, 67, 54, 0.4));
}

.public-page .fa-circle.text-gray {
    color: #9e9e9e;
    filter: drop-shadow(0 0 3px rgba(158, 158, 158, 0.4));
}

/* Donut Charts */
.public-page span[data-peity] {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

/* Server Table Specific */
.public-page .server-table img {
    max-width: 24px;
    height: auto;
    vertical-align: middle;
}

/* Hover Effects */
.public-page .table-hover > tbody > tr:hover {
    background-color: #f5f9fc;
}

/* Hide Status Indicator and ID Columns */
.public-page .table > thead > tr > th:first-child,
.public-page .table > tbody > tr > td:first-child,
.public-page .table > thead > tr > th:nth-child(2),
.public-page .table > tbody > tr > td:nth-child(2) {
    display: none;
}

/* Responsive Tables */
@media (max-width: 767px) {
    .public-page .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    .public-page .table > thead > tr > th,
    .public-page .table > tbody > tr > td {
        padding: 10px 5px;
        font-size: 12px;
    }

    
    .public-page .table > thead > tr > th {
        font-size: 11px;
    }
    
    /* Hide less important columns on mobile */
    .public-page .mobile-hide {
        display: none;
    }
}

/* Box Header Styling */
.public-page .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f4f4f4;
}

.public-page .box-header .box-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.public-page .box-header .box-title i {
    margin-right: 10px;
    color: #3c8dbc;
}

/* Alternating Row Colors */
.public-page .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fcfcfc;
}

/* Tooltip Styling */
.public-page [data-toggle="tooltip"] {
    cursor: help;
}

.tooltip-inner {
    max-width: 200px;
    padding: 8px 12px;
    color: #fff;
    text-align: center;
    background-color: #333;
    border-radius: 4px;
    font-size: 12px;
}