/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196f3;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #00bcd4;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a3e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

html {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 60px;
    margin: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Header */
.header {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
}

.header h1 i {
    color: var(--danger-color);
    margin-right: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auto-refresh {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.auto-refresh i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-cert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-cert:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    order: 2;
    line-height: 1.2;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    order: 1;
    line-height: 1;
}

/* Global Uptime Dashboard */
.uptime-dashboard {
    display: none; /* Hidden for now */
    gap: 25px;
    margin-bottom: 30px;
    margin-top: 0;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    align-items: center;
    clear: both;
}

.uptime-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.uptime-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.uptime-circle {
    position: relative;
    width: 220px;
    height: 220px;
    padding: 10px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.circle-progress-bar {
    fill: none;
    stroke: #4caf50;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease;
}

.uptime-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.uptime-percentage span {
    font-size: 38px;
    font-weight: 700;
    color: #4caf50;
    display: block;
    line-height: 1;
}

.uptime-time-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

.response-chart-container {
    flex: 1;
    height: 250px;
    position: relative;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Content Area */
.content-area {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 15px 10px 38px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Status Grid - BOX STYLE (ORIGINAL - COMMENTED OUT) */
/*
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
*/

/* Professional Table Layout */
.status-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.status-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.status-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    cursor: pointer;
}

.status-table tbody tr:hover {
    background: rgba(33, 150, 243, 0.05);
}

.status-table tbody tr:last-child {
    border-bottom: none;
}

.status-table tbody td {
    padding: 16px 20px;
    font-size: 13px;
}

/* Table Columns */
.col-website {
    width: 20%;
}

.col-uptime {
    width: 12%;
}

.col-status {
    width: 15%;
}

.col-response {
    width: 15%;
}

.col-history {
    width: 30%;
}

.col-status-icon {
    width: 8%;
    text-align: center;
}

.loading-cell {
    text-align: center;
    padding: 40px !important;
}

/* Website Cell */
.website-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.website-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(33, 150, 243, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-color);
}

.website-info {
    flex: 1;
}

.website-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.website-category {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-uptime {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-uptime.warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-uptime.critical {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge-status {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-status.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge-response {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-response.slow {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-response.critical {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* History Bars */
.history-bars {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 30px;
}

.history-bar {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.history-bar.up {
    background: #4caf50;
}

.history-bar.down {
    background: #f44336;
}

.history-bar.partial {
    background: #ff9800;
}

.history-bar:hover {
    transform: scaleY(1.2);
    opacity: 0.8;
}

/* Status Icon */
.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.status-icon.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-icon.offline {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* BOX STYLE - status-header (COMMENTED OUT) */
/*
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.status-title {
    flex: 1;
}

.status-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.status-title .category {
    font-size: 12px;
    color: var(--text-secondary);
}
*/

/* Compact List - status-header */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.status-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.status-title h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.status-title .category {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.6;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 85px;
    white-space: nowrap;
}

.status-badge.online {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.offline {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Performance Badge */
/* BOX STYLE (COMMENTED OUT) */
/*
.performance-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
}
*/

/* Compact Performance Badge */
.performance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.performance-badge.perf-excellent {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.performance-badge.perf-good {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.performance-badge.perf-slow {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.performance-badge.perf-critical {
    border-color: #ff5722;
    background: rgba(255, 87, 34, 0.1);
}

.performance-badge.perf-unacceptable {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

/* BOX STYLE (COMMENTED OUT) */
/*
.perf-emoji {
    font-size: 20px;
}

.perf-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perf-time {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}
*/

/* Compact Performance Elements */
.perf-emoji {
    font-size: 12px;
}

.perf-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perf-time {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #2196f3;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
}

.location-badge:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateX(3px);
}

.location-icon {
    font-size: 12px;
}

.location-text {
    font-size: 10px;
    font-weight: 600;
}

.location-percentage {
    font-size: 11px;
    font-weight: 700;
    color: #2196f3;
}

/* Location Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.location-summary {
    margin-bottom: 20px;
}

.location-summary h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
}

.location-overall {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.location-stat {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.availability-good {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4caf50;
}

.availability-warning {
    background: rgba(255, 152, 0, 0.2) !important;
    color: #ff9800;
}

.availability-bad {
    background: rgba(244, 67, 54, 0.2) !important;
    color: #f44336;
}

.location-grid {
    display: grid;
    gap: 12px;
}

.location-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid;
    background: rgba(255, 255, 255, 0.03);
}

.location-item.up {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.location-item.down {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.location-item.checking {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.location-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.location-emoji {
    font-size: 20px;
}

.primary-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.location-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.location-status .up {
    color: #4caf50;
}

.location-status .down {
    color: #f44336;
}

.location-status .checking {
    color: #ff9800;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* BOX STYLE (COMMENTED OUT) */
/*
.status-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
*/

/* Compact Status Details */
.status-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

.detail-item label {
    color: var(--text-secondary);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
}

.detail-item span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 11px;
}

.status-error {
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.25);
    border-left: 3px solid var(--danger-color);
    font-size: 10px;
    color: var(--danger-color);
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
}

.status-url {
    display: none;
}

/* Alerts List */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: start;
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-icon.down {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.alert-icon.up {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.alert-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.alert-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Certificates View */
.certificates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.certificate-header {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.certificate-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.certificate-info {
    flex: 1;
}

.certificate-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.certificate-url {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    word-break: break-all;
}

.certificate-category {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-status {
    flex-shrink: 0;
}

.badge-urgent {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-ok {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-error {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.certificate-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    font-size: 13px;
}

.cert-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    flex-shrink: 0;
}

.cert-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.cert-value.urgent {
    color: #f44336;
    font-weight: 600;
}

.cert-value.warning {
    color: #ff9800;
    font-weight: 600;
}

.cert-value.cert-long {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.cert-value.cert-code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.cert-value.cert-error {
    color: #f44336;
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 25px;
}

.detail-info {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 150px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    flex: 1;
    font-weight: 600;
}

.chart-container {
    margin-top: 25px;
}

.chart-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.chart-container canvas {
    max-height: 300px;
}

/* Utilities */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

.active-view {
    display: block;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.footer-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-table thead th {
        padding: 12px 16px;
        font-size: 10px;
    }
    
    .status-table tbody td {
        padding: 14px 16px;
        font-size: 12px;
    }
    
    .col-history {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .uptime-dashboard {
        flex-direction: column;
        padding: 20px;
    }
    
    .uptime-circle-container {
        min-width: auto;
    }
    
    .response-chart-container {
        width: 100%;
        height: 200px;
    }
    
    .status-table-container {
        overflow-x: auto;
    }
    
    .status-table {
        min-width: 900px;
    }

    .search-box input {
        width: 100%;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    body {
        padding-bottom: 40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
    }
}

@keyframes statusChange {
    0%, 100% {
        border-color: var(--border-color);
    }
    50% {
        border-color: #2196f3;
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
    }
}

@keyframes checking {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.status-table tbody tr {
    animation: fadeIn 0.3s ease;
}

.status-table tbody tr.checking {
    animation: checking 0.5s ease;
}

.status-table tbody tr.status-changed {
    animation: statusChange 1.5s ease 3;
}

.status-badge {
    transition: all 0.3s ease;
}

