/* ==========================================================================
   📦 GURUJI ADMIN - QUESTION INJECTOR CONSOLE CSS (v1.0)
   ========================================================================== */

.repository-card, .module-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 24px;
    text-align: left;
    box-shadow: var(--glass-shadow);
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}
.module-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.section-head h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}
.scan-btn, .submit-btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    transition: all 0.25s ease;
}
.scan-btn {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--glass-border);
}
.scan-btn:hover, .submit-btn:hover:not(:disabled) { transform: translateY(-1.5px); }

.repo-list {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px;
    min-height: 68px;
    max-height: 260px;
    overflow: auto;
}
.repo-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.22);
}
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.modern-select, .file-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.modern-select:focus, .file-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.modern-select:disabled, .file-input:disabled { opacity: 0.55; cursor: not-allowed; }

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 14px;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}
.chip-found {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.chip-missing {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.chip-waiting {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.path-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
    font-weight: 600;
}
.toggle-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.toggle-group input { display: none; }
.toggle-label {
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.25s ease;
}
.toggle-group input:checked + .toggle-label {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}
.helper-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 600;
}
.json-toast-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
.json-toast {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
}
.json-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.json-toast.success {
    background: linear-gradient(135deg, #047857, #10b981);
}
.json-toast.error {
    background: linear-gradient(135deg, #991b1b, #ef4444);
}
.json-toast.warning {
    background: linear-gradient(135deg, #92400e, #f59e0b);
}
.json-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.15rem;
}
.json-toast-title {
    margin: 0 0 3px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}
.json-toast-message {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 600;
    opacity: 0.96;
}
.json-toast-close {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .module-grid, .module-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section-head { align-items: flex-start; flex-direction: column; }
    .json-toast-stack {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}
