/* 
 * nMon Public Page Responsive Styling
 * Mobile-friendly improvements for the public status page
 */

/* Base responsive adjustments */
@media (max-width: 991px) {
    .public-page .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .public-page .content {
        padding: 15px 0;
    }
    
    .public-page .box {
        border-radius: 0;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .public-page .box-header {
        padding: 12px 15px;
    }
    
    .public-page .box-header .box-title {
        font-size: 16px;
    }
}

/* Small devices (phones) */
@media (max-width: 767px) {
    /* Header adjustments */
    .public-page-header {
        padding: 20px 0;
    }
    
    .public-page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .public-page-header p {
        font-size: 14px;
    }
    
    .status-summary {
        margin-top: 15px;
        justify-content: space-around;
    }
    
    .status-item {
        padding: 8px;
    }
    
    .status-count {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }
    
    .status-label {
        font-size: 12px;
    }
    
    /* Table adjustments */
    .public-page .table > thead > tr > th,
    .public-page .table > tbody > tr > td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .public-page .table > thead > tr > th {
        font-size: 11px;
    }
    
    /* Status icons */
    .public-page .fa-circle {
        font-size: 14px;
    }
    
    /* Donut charts */
    .public-page span[data-peity] {
        transform: scale(0.8);
        margin-right: 2px;
    }
    
    /* Stack tables on mobile */
    .public-page .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    /* Optimize space */
    .public-page .box-body {
        padding: 10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .public-page-header h1 {
        font-size: 20px;
    }
    
    .public-page .box-header .box-title {
        font-size: 14px;
    }
    
    .public-page .box-header .box-title i {
        margin-right: 5px;
    }
    
    /* Further reduce table font size */
    .public-page .table > thead > tr > th,
    .public-page .table > tbody > tr > td {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    /* Make status icons smaller */
    .public-page .fa-circle {
        font-size: 12px;
    }
    
    /* Reduce chart size */
    .public-page span[data-peity] {
        transform: scale(0.7);
        margin-right: 1px;
    }
}

/* Landscape orientation for phones */
@media (max-width: 767px) and (orientation: landscape) {
    .public-page-header {
        padding: 15px 0;
    }
    
    .status-summary {
        flex-direction: row;
    }
    
    .status-item {
        margin: 0 10px;
    }
}