:root {
    --bg-main: #111827; /* Dark Gray/Black */
    --bg-card: #1f2937;
    --border: #374151;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #10b981; /* Emerald Green */
    --primary-hover: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.devops-theme {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-3xl { font-size: 2rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-safe { color: var(--primary); }
.text-sm { font-size: 0.85rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Top Bar */
.top-bar {
    display: flex; flex-direction: column; gap: 1rem;
    align-items: center; justify-content: space-between;
}
@media (min-width: 640px) {
    .top-bar { flex-direction: row; }
}

.input-group { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; width: 100%; }
.input-group label { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-control {
    background: var(--bg-main); border: 1px solid var(--border); color: var(--text-main);
    padding: 0.75rem; border-radius: 0.5rem; outline: none; transition: all 0.2s; width: 100%;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }

/* Status */
.status-indicator {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1;
    padding: 1rem; border-radius: 0.5rem; background: var(--bg-main); width: 100%;
}
.status-indicator i { width: 32px; height: 32px; }

/* Grid Section */
.permissions-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) {
    .permissions-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.col-title { margin: 0 0 1rem 0; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.col-title i { width: 18px; height: 18px; color: var(--text-muted); }

.perm-toggles { display: flex; flex-direction: column; gap: 0.75rem; }

/* Custom Checkbox */
.check-label {
    display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.95rem; user-select: none;
}
.check-label input { display: none; }
.chk-box {
    width: 24px; height: 24px; border: 2px solid var(--border); border-radius: 0.25rem;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    background: var(--bg-main);
}
.check-label input:checked + .chk-box {
    background: var(--primary); border-color: var(--primary);
}
.check-label input:checked + .chk-box::after {
    content: ''; width: 6px; height: 12px; border: solid var(--bg-main);
    border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px;
}

/* Bottom Section */
.btn {
    padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem;
}
.btn-primary { background: var(--primary); color: var(--bg-main); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--border); }
.btn i { width: 16px; height: 16px; }

@media (max-width: 640px) { .hide-mobile { display: none; } }

.shell-box {
    background: #000; border: 1px solid var(--border); border-radius: 0.5rem;
    padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.prompt { color: var(--primary); font-weight: bold; font-family: var(--font-mono); font-size: 1.25rem; }
.shell-box code { color: #fff; flex: 1; word-break: break-all; }

/* Toast */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--text-main); color: var(--bg-main); padding: 0.75rem 1.5rem; border-radius: 2rem;
    font-weight: 600; opacity: 0; transition: all 0.3s; z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
