/* 
   Cisco Switch CLI Master & Virtual Exam System Styling
   Modern Cybersecurity & Networking Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #12192c;
    --bg-card: #182238;
    --bg-terminal: #070a14;
    --border-color: #263554;
    --border-bright: #3b507d;
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-green: #10b981;
    --accent-emerald: #00ff66;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation Bar */
.app-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.brand-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 15, 29, 0.6);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* App Main Body Layout */
.app-main {
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UI Buttons & Badges */
.btn {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #050b14;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    border-color: var(--border-bright);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.pulse-animation {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.badge-pill {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards Layout */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header {
    background-color: rgba(10, 15, 29, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* ================= TUTORIALS VIEW ================= */
.tutorials-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
}

.module-nav-sidebar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.module-nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.module-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.module-nav-item.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
}

.mod-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.mod-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.tutorial-article {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.module-header .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.pt-guide-card {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.pt-guide-card .card-header {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.pt-steps-list {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.tutorial-body-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--accent-cyan);
}

.tutorial-body-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.tutorial-body-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
}

.data-table td {
    color: var(--text-muted);
}

.code-box {
    position: relative;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin: 1rem 0;
}

.code-box pre {
    white-space: pre-wrap;
    color: var(--accent-emerald);
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent-blue);
    color: #000;
}

.copy-btn.copied {
    background: var(--accent-green);
    color: #000;
}

.tip-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--text-main);
    margin: 1rem 0;
}

.tutorial-bottom-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ================= SANDBOX & TERMINAL VIEW ================= */
.sandbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Cisco Switch Hardware Panel Styling */
.switch-chassis {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.chassis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cisco-logo {
    font-weight: 900;
    letter-spacing: 1px;
    color: #38bdf8;
    font-size: 1.1rem;
}

.model-name {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.system-leds {
    display: flex;
    gap: 0.85rem;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.led-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #334155;
}

.led.green-glow {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.hostname-badge {
    background: #020617;
    border: 1px solid #334155;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.ports-panel {
    display: flex;
    gap: 1.5rem;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 1rem;
}

.ports-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-title {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ports-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ports-row {
    display: flex;
    gap: 0.35rem;
}

.rj45-port {
    width: 32px;
    height: 32px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rj45-port:hover {
    border-color: var(--accent-blue);
    transform: scale(1.08);
}

.rj45-port.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    background: #1e293b;
}

.port-num {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: #94a3b8;
}

.port-led {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.port-led.led-up {
    background-color: #10b981;
    box-shadow: 0 0 5px #10b981;
}

.port-led.led-down {
    background-color: #ef4444;
}

.vlan-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
    background: #334155;
    color: #fff;
}

.vlan-tag-10 { background: #3b82f6; }
.vlan-tag-20 { background: #8b5cf6; }
.trunk-tag { background: #f59e0b; }

/* Cisco IOS Terminal Window Styling */
.terminal-card {
    display: flex;
    flex-direction: column;
    height: 580px;
}

.terminal-header {
    background: #121829;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-controls {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.term-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    flex: 1;
    background: var(--bg-terminal);
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.term-line {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.45;
}

.term-line.input-line {
    color: #ffffff;
    font-weight: 600;
}

.term-line.output-line {
    color: var(--accent-emerald);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.prompt-label {
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    caret-color: var(--accent-cyan);
}

/* Port Inspector & Topology Renderer */
.topology-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.port-info-table {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.info-row .label {
    color: var(--text-muted);
}

.status-pill {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-up { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.status-down { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }

.connected-device-box {
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.connected-device-box h4 {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.device-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.device-icon {
    font-size: 2rem;
}

.device-name {
    font-weight: 700;
    color: var(--accent-cyan);
}

.device-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topology-nodes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.node-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.8rem;
}

.node-active { border-left: 4px solid var(--accent-green); }
.node-inactive { border-left: 4px solid var(--accent-red); opacity: 0.6; }

.node-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* ================= GRADER & VIRTUAL EXAM VIEW ================= */
.grader-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
}

.progress-header {
    margin-bottom: 1.2rem;
}

.progress-title-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    height: 12px;
    background: var(--bg-terminal);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    width: 0%;
    transition: width 0.4s ease;
}

.rubric-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.rubric-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.rubric-item.passed {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.rubric-status-icon {
    font-size: 1.2rem;
}

.rubric-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.rubric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rubric-hint {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-top: 0.3rem;
}

/* ================= CERTIFICATE MODAL & PRINT STYLES ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #090e1a;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    max-width: 950px;
    width: 100%;
    overflow: hidden;
}

.modal-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Printable Certificate Canvas */
.certificate-paper {
    background: #ffffff;
    color: #1e293b;
    padding: 2.5rem;
    font-family: 'Inter', serif;
}

.cert-outer-border {
    border: 8px solid #0f172a;
    padding: 6px;
}

.cert-inner-border {
    border: 2px solid #94a3b8;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #ffffff, #f8fafc);
}

.cert-cisco-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0284c7;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cert-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.cert-subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cert-text {
    font-size: 0.95rem;
    color: #475569;
}

.cert-student-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0369a1;
    margin: 0.5rem 0 1rem 0;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding: 0 2rem 0.4rem 2rem;
}

.cert-description {
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.cert-stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;

    color: #0f172a;
}

.text-gold { color: #d97706; }
.text-green { color: #16a34a; }

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
}

.cert-sig-block {
    text-align: center;
}

.sig-line {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 0.2rem;
    min-width: 180px;
}

.sig-title {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.3rem;
}

.cert-seal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}

.seal-inner {
    border: 2px dashed #ffffff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.seal-star { font-size: 0.6rem; }
.seal-text { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.5px; }

.cert-code-block {
    text-align: right;
    font-size: 0.75rem;
}

.code-label { color: #64748b; }
.cert-code { font-family: var(--font-mono); font-weight: 700; color: #0284c7; }

/* PRINT MEDIA QUERY */
@media print {
    body * {
        visibility: hidden;
    }
    #certificateModal, #certificateModal * {
        visibility: visible;
    }
    #certificateModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .certificate-paper {
        padding: 0;
    }
    @page {
        size: landscape;
        margin: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .tutorials-layout, .sandbox-grid, .grader-grid, .topology-details-grid {
        grid-template-columns: 1fr;
    }
}
