:root {
    --primary-color: #343a40;
    --secondary-color: #f8f9fa;
    --accent-color: #17a2b8;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    background-color: var(--secondary-color);
    padding: 10px 5px;
    font-size: 14px;
}

@font-face {
    font-family: 'DashboardFont';
    src: url('fonts/Ophir WF Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.dashboard-header {
    text-align: center;
    /* center text inside */
    display: flex;
    flex-direction: column;
    /* stack elements vertically */
    align-items: center;
    /* horizontally center items */
    justify-content: center;
    /* vertically center if height set */
    gap: 5px;
    /* space between h1, p, and server time */
    margin-bottom: 20px;
}

.dashboard-header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    /* center the logo and text horizontally */
    gap: 10px;
    font-weight: 700;
	font-family: 'DashboardFont', sans-serif !important;
}

.dashboard-header .brand img {
    height: 40px;
    /* adjust to your preferred size */
    width: auto;
}

.dashboard-header p {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
	font-family: 'DashboardFont', sans-serif !important;
    letter-spacing: 1px;
}

#server-time {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.log-container {
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: auto;
    max-height: 450px;
}

.settings-container {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.form-control,
.form-select {
    font-size: 0.9rem;
}

.btn-save {
    background-color: var(--success-color);
    color: white;
    font-weight: 500;
    padding: 10px 30px;
}

.btn-save:hover {
    background-color: #218838;
}

.alert {
    font-size: 0.9rem;
}

pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
    white-space: nowrap;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.nav-tabs .nav-link.active {
    background-color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: 0;
    padding: 12px 10px;
    background-color: var(--secondary-color);
}

.tab-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.highlight {
    background-color: #ffffd0;
}

.error {
    color: var(--error-color);
}

.success {
    color: var(--success-color);
}

.info {
    color: var(--accent-color);
}

.warning {
    color: var(--warning-color);
}

.log-header {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.timestamp {
    color: #6c757d;
    font-weight: 600;
}

.summary-box {
    background-color: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    body {
        padding: 20px;
        font-size: 16px;
    }







    .log-container {
        padding: 20px;
        max-height: 600px;
    }

    .settings-section h4 {
        font-size: 1.3rem;
    }

    pre {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-content h3 {
        font-size: 1.5rem;
    }

    .log-header {
        font-size: 1rem;
    }

    .summary-box {
        padding: 10px;
        font-size: 0.95rem;
    }

    .alertlog-textarea {
        height: 70vh;
        min-height: 600px;
        font-size: 1rem;
    }
}

/* Editor Specific Styles */
.editor-wrapper {
    display: flex;
    flex-direction: column;
    max-height: none !important;
}

.alertlog-textarea {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    background-color: #1a1a1a;
    color: #e6e6e6;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    resize: vertical;
    outline: none;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.alertlog-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(23, 162, 184, 0.35);
}

.editor-actions {
    display: flex;
    align-items: center;
}

/* Performance Tab Styles */
.perf-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 10px;
}
.perf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}
.tracking-wider {
    letter-spacing: 0.05em;
}
.font-size-xs {
    font-size: 0.75rem;
}
.font-size-sm {
    font-size: 0.875rem;
}
.font-weight-bold {
    font-weight: 700 !important;
}
.bg-white-50 {
    background-color: rgba(255,255,255,0.15) !important;
}
.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}