/* WebSocket Summary Mobile Styles */
/* Version: 1.3 - Same-channel duplicate UUID highlighting only */

/* Custom breakpoint classes for 360px */
@media (max-width: 359px) {
    .d-custom-mobile {
        display: block !important;
    }
    .d-custom-desktop {
        display: none !important;
    }
}

@media (min-width: 360px) {
    .d-custom-mobile {
        display: none !important;
    }
    .d-custom-desktop {
        display: block !important;
    }
}

/* Desktop styles - no card styling for channels only */
@media (min-width: 360px) {
    /* Keep stats cards with styling, only remove card styling from channels */
    .mobile-channel-item {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .mobile-channel-item .mobile-uuid-item {
        background: transparent !important;
        border-left: none !important;
    }
}

/* Mobile-specific adjustments - merged into single media query */
@media (max-width: 359px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Compact header for mobile */
    h2.fs-4 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    /* Smaller buttons on mobile */
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Compact search input */
    .input-group-sm .form-control {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Mobile card improvements - only show cards on mobile */
    .card {
        border-radius: 8px !important;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
        background: #fff !important;
    }
    
    .card-body {
        padding: 0.375rem !important;
    }
    
    /* Stats cards on mobile */
    .col-6 .card {
        min-height: 100px;
    }
    
    .col-6 .card-body {
        padding: 0.375rem !important;
    }
    
    .col-6 .fa-lg {
        font-size: 1rem;
    }
    
    .col-6 .fs-6 {
        font-size: 0.7rem !important;
    }
    
    /* Mobile channel items */
    .mobile-channel-item {
        background-color: #fff;
        border: 1px solid #e9ecef !important;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .mobile-channel-item h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-channel-item .small {
        font-size: 0.75rem;
    }
    
    .mobile-channel-item code {
        font-size: 0.7rem;
        word-break: break-all;
    }
    
    /* Mobile UUID list styling */
    .mobile-uuid-list {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
    
    .mobile-uuid-item {
        background-color: #f8f9fa !important;
        border-left: 3px solid #0d6efd !important;
        transition: all 0.2s ease;
    }
    
    .mobile-uuid-item:hover {
        background-color: #e9ecef !important;
        transform: translateX(2px);
    }
    
    .mobile-uuid-item code {
        font-size: 0.7rem;
        line-height: 1.4;
        word-break: break-all;
    }
    
    /* Mobile table adjustments */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Stack buttons vertically on very small screens */
    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        margin-bottom: 0.25rem;
    }
    
    /* Compact search results */
    #searchResults {
        font-size: 0.75rem;
    }
    
    /* Card shadow improvements - only on mobile */
    .shadow-sm {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    }
    
    /* Responsive text sizing */
    .fs-5 {
        font-size: 1rem !important;
    }
    
    .fs-6 {
        font-size: 0.875rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 360px) and (max-width: 1024px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* No card styling for tablets - use clean layout */
    .col-md-4 .card-body {
        padding: 0;
    }
    
    .col-md-4 .fa-lg {
        font-size: 1.5rem;
    }
}

/* Hover effects for desktop - disabled since cards are hidden on desktop */
@media (min-width: 1025px) {
    .card:hover {
        transform: none;
        transition: none;
    }
    
    .d-lg-none .card:hover {
        transform: none;
    }
}

/* Loading state improvements */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Badge improvements */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Code block improvements */
code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

/* UUID and version formatting */
.uuid-text {
    font-size: 0.75rem;
    font-weight: 500;
}

.uuid-text:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.version-model {
    font-size: 0.7rem;
    font-weight: 500;
}

.version-model .version {
    color: #0d6efd;
}

.version-model .model {
    color: #198754;
}

/* Table column width adjustments */
.table th:nth-child(4),
.table td:nth-child(4) {
    width: 25%;
    min-width: 200px;
}

.table th:nth-child(1),
.table td:nth-child(1) {
    width: 20%;
    min-width: 150px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 18%;
    min-width: 120px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 10%;
    min-width: 80px;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 12%;
    min-width: 100px;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 12%;
    min-width: 100px;
}

.table th:nth-child(7),
.table td:nth-child(7) {
    width: 13%;
    min-width: 90px;
}

/* Auto-refresh status improvements */
#autoRefreshStatus {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

/* Search input focus improvements */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Remove shadows on desktop */
@media (min-width: 360px) {
    .shadow-sm {
        box-shadow: none !important;
    }
}

/* Duplicate UUID highlighting styles */
.duplicate-uuid {
    background-color: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 0.25rem !important;
    padding: 0.125rem 0.25rem !important;
    font-weight: 600 !important;
    color: #856404 !important;
}

.table-warning {
    background-color: #fff3cd !important;
}

.table-warning td {
    background-color: #fff3cd !important;
}

/* Mobile duplicate highlighting */
.mobile-channel-item.border-warning {
    border-color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Duplicate UUID summary card highlighting */
.card.border-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

/* Warning icon styling */
.fa-exclamation-triangle.text-warning {
    color: #ffc107 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
} 