/* Base styles and color variables */
:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --card-bg: #1e293b;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #10b981;
    --red: #ef4444;
    --border-color: #374151;
    --github-btn: #2d333b;
    --telegram-btn: #2b5ab4;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-bot {
    color: var(--blue);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.theme-controls {
    display: flex;
    gap: 0.5rem;
}

.theme-toggle,
.refresh-button {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover,
.refresh-button:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Main content area */
#status-container {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* Loading state */
.loader {
    border: 4px solid var(--bg-primary);
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error state */
#error-state {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Card layout */
.card-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .card-row {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
}

/* Info rows inside cards */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: var(--text-secondary);
}

.value {
    font-weight: 500;
}

.value.mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
}

a.value {
    color: var(--blue);
    text-decoration: none;
}

a.value:hover {
    text-decoration: underline;
}

/* Status indicators */
.status-online {
    color: var(--green);
}

.status-enabled {
    color: var(--green);
}

.status-disabled {
    color: var(--red);
}

/* Button styles */
.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-github {
    background-color: var(--github-btn);
    color: var(--text-primary);
}

.btn-telegram {
    background-color: var(--telegram-btn);
    color: white;
}

/* Last updated text */
.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Footer styles */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Utility classes */
.hidden {
    display: none;
}

.mono-bold {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 600;
}