/* TheRadioHub Icecast-firewall Manager Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    display: block;
    flex-shrink: 0;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user .btn,
.navbar .btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.nav-user .btn:hover,
.navbar .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-box h2 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 2rem;
    text-align: center;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

section h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    display: inline-block;
    width: 100%;
}

/* Status Grid */
.status-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.status-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem;
}

.status-details {
    font-size: 0.8rem !important;
    line-height: 1.4;
}

@media (max-width: 1920px) {
    .status-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0.5rem;
    }
    .status-card {
        padding: 0.75rem;
    }
    .status-card h3 {
        font-size: 0.95rem;
    }
    .status-details {
        font-size: 0.85rem;
    }
}

@media (max-width: 1400px) {
    .status-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    .status-card {
        padding: 1rem;
    }
    .status-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.status-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 14px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0; /* Allow grid items to shrink below content size */
    display: block !important; /* Ensure cards are visible */
    visibility: visible !important; /* Force visibility */
    opacity: 1 !important; /* Force opacity */
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-card:hover::before {
    opacity: 1;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.clickable-status-card {
    cursor: pointer;
    user-select: none;
}

.clickable-status-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.75rem;
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
}

.status-indicator.active {
    background-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 0 12px var(--success-color);
    animation: pulse 2s infinite;
}

.status-indicator.inactive {
    background-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 12px var(--danger-color);
}

.status-indicator.warning {
    background-color: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 0 12px var(--warning-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-details {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Detail Section */
.detail-section {
    margin-top: 1rem;
}

.toggle-btn {
    width: 100%;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: var(--border-color);
}

.toggle-icon {
    transition: transform 0.3s;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.detail-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.detail-card pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Encoder Firewall Section */
.encoder-firewall-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.encoder-firewall-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.encoder-firewall-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.encoder-downloads-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.encoder-downloads-buttons .btn {
    flex: 1 1 calc(25% - 0.75rem);
    min-width: 160px;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

@media (max-width: 1200px) {
    .encoder-downloads-buttons .btn {
        flex: 1 1 calc(33.333% - 0.75rem);
    }
}

@media (max-width: 900px) {
    .encoder-downloads-buttons .btn {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .encoder-downloads-buttons .btn {
        flex: 1 1 100%;
    }
}

.toggle-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.toggle-control label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.toggle-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.encoder-list, .encoder-allowlist, .encoder-denylist {
    margin-top: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

/* Connections Monitor Section */
.connections-monitor-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.connections-monitor-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Search icon for Active Connections Monitor */
.icon-search {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    flex-shrink: 0;
}

.connections-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.summary-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.summary-value.warning {
    color: var(--warning-color);
}

.suspicious-row {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.blocked-row {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-left: 4px solid #ef4444;
}

.allowed-row {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-left: 4px solid #10b981;
}

.nginx-logs-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.log-viewer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.log-viewer pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.log-viewer .log-ip {
    color: #60a5fa;
    font-weight: bold;
}

.log-viewer .log-error {
    color: #f87171;
    font-weight: bold;
}

.port-number {
    color: #6b7280 !important;
    font-size: 0.9em;
    font-weight: 500;
}

/* Status icon tooltips */
.status-icon {
    cursor: help;
    position: relative;
    display: inline-block;
}

.status-icon:hover {
    opacity: 0.8;
}

.status-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-icon:hover::after {
    opacity: 1;
}

.status-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.status-icon:hover::before {
    opacity: 1;
}

.log-viewer .log-success {
    color: #34d399;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

th {
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: scale(1.01);
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.field-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-weight: normal;
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#abuseipdb-status-icon {
    transition: opacity 0.3s ease;
}

#abuseipdb-status-icon svg {
    display: block;
}

.section-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.config-section h2,
.firewall-section h2,
.encoder-firewall-section h2,
.charts-section h2 {
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.eye-icon-closed {
    display: none;
}

.password-toggle.show-password .eye-icon-open {
    display: none;
}

.password-toggle.show-password .eye-icon-closed {
    display: block;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

/* Extra padding for password inputs with toggle icon */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 45px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section-controls {
    margin-bottom: 1rem;
}

.chart-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Charts */
/* Mount Selection */
.mount-selection {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.mount-selection h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.mount-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mount-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.mount-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 4px;
    transition: background 0.2s;
    min-height: 2rem;
}

.mount-checkbox-item:hover {
    background: var(--bg-color);
}

.mount-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
    align-self: center;
}

.mount-checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    user-select: none;
    display: flex;
    align-items: center;
    color: inherit;
    margin: 0;
    line-height: 1.4;
    vertical-align: middle;
}

.undo-notification {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-mounts {
    padding: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 1rem;
}

/* Firewall Actions */
.firewall-whitelist-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.firewall-whitelist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* XML Syntax Highlighting */
.xml-tag {
    color: #60a5fa;
    font-weight: 500;
}

.xml-attribute {
    color: #fbbf24;
}

.xml-value {
    color: #f87171;
}

.xml-comment {
    color: #34d399;
    font-style: italic;
}

