/* Google Fonts for retro style */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #101820;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    font-size: 14px;   /* ✅ smaller default desktop font */
    line-height: 1.5;
}

/* Header */
header {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    padding: 16px 20px; /* reduced */
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-column {
    margin-bottom: 6px;
}

.logo-column img {
    max-width: 90px;   /* ✅ smaller logo on desktop */
    height: auto;
    display: block;
}

.content-column h1 {
    color: #f7c948;
    font-size: 28px; /* reduced */
    margin: 0;
}

/* Navigation */
.nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.nav-button {
    background-color: #00bfa6;
    color: #101820;
    padding: 6px 10px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: 0.85rem; /* ✅ reduced */
}

.nav-button:hover {
    background-color: #00a896;
    color: #fff;
}

.logout {
    background-color: #ff3c38;
}
.logout:hover {
    background-color: #c22c2c;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Widgets */
.widget {
    background: #1a1a2e;
    border: 1px solid #2f3e46;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}
.widget h2 {
    color: #00d1b2;
    font-size: 18px; /* ✅ reduced */
    margin-bottom: 10px;
}
.widget h3 {
    color: #9ae3d0;
    font-size: 14px; /* ✅ reduced */
    margin: 12px 0 6px;
}
.value {
    font-size: 1.1rem; /* ✅ reduced */
    font-weight: bold;
    color: #f7c948;
}

/* Logs */
pre {
    background: #0d1b2a;
    padding: 12px;
    border: 1px dashed #2f3e46;
    border-radius: 10px;
    max-height: 300px;
    color: #c9d6df;
    font-size: 0.9rem; /* ✅ smaller */
    line-height: 1.4;
    font-weight: 500;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Buttons */
.button {
    background: #1abc9c;
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 6px;
    font-family: inherit;
    font-size: 0.85rem;
}
.button:hover {
    background: #16a085;
    color: #fff;
}

/* File links */
.file-link {
    color: #00d1b2;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}
.file-link:hover {
    background: rgba(0, 209, 178, 0.2);
    text-decoration: underline;
}

/* ✅ Mobile-specific tweaks */
@media (max-width: 768px) {
    body {
        font-size: 13px !important; /* smaller than desktop */
        line-height: 1.4 !important;
    }

    h2 {
        font-size: 1.2em !important;
    }

    h3 {
        font-size: 1em !important;
    }

    pre {
        font-size: 0.8em !important;
        line-height: 1.3 !important;
    }

    .nav-button, .button {
        font-size: 0.8em !important;
        padding: 8px 12px !important;
    }

    .file-link {
        font-size: 0.8em !important;
    }

    .nav-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .logo-column img {
        max-width: 70px !important; /* ✅ smaller logo on mobile */
    }
}
