/* ============================================================
   VARIÁVEIS DE COR (MUDE AQUI E MUDA TUDO)
   ============================================================ */
:root {
    /* Cores principais */
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a855f7;
    --primary-rgb: 108, 92, 231;
    
    /* Cores de status */
    --success: #28a745;
    --success-light: #5ddb7a;
    --danger: #ff6b6b;
    --danger-dark: #dc3545;
    --warning: #ff8c00;
    --info: #0dcaf0;
    --info-dark: #0d6efd;
    
    /* Cores de texto */
    --text-white: #ffffff;
    --text-dark: #212529;
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-muted-dark: #6c757d;
    --text-label: rgba(255, 255, 255, 0.7);
    
    /* Cores de fundo */
    --bg-dark: #0c0e1a;
    --bg-dark2: #1a1d2e;
    --bg-dark3: #2a1f3d;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-hover: rgba(255, 255, 255, 0.08);
    --bg-white: #ffffff;
    --bg-filter: rgba(255, 255, 255, 0.12);
    --bg-filter-hover: rgba(255, 255, 255, 0.18);
    
    /* Cores de borda */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-input: rgba(255, 255, 255, 0.1);
    --border-white: #ced4da;
    --border-filter: rgba(255, 255, 255, 0.15);
    
    /* Certificações 80 Plus */
    --bronze: #cd7f32;
    --prata: #c0c0c0;
    --ouro: #ffd700;
    --platina: #e5e4e2;
    --titanio: #aaaaaa;
    
    /* Arquiteturas */
    --intel: #4facfe;
    --amd: #ff6b6b;
    
    /* Sombras */
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 25px rgba(108, 92, 231, 0.35);
    --shadow-primary-hover: 0 12px 35px rgba(108, 92, 231, 0.5);
    --shadow-success: 0 8px 25px rgba(40, 167, 69, 0.35);
    --shadow-success-hover: 0 12px 35px rgba(40, 167, 69, 0.5);
    --shadow-danger: 0 8px 25px rgba(220, 53, 69, 0.35);
    --shadow-danger-hover: 0 12px 35px rgba(220, 53, 69, 0.5);
    
    /* Espaçamentos */
    --radius: 24px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --padding: 30px;
    --padding-sm: 20px;
    --padding-xs: 15px;
    
    /* Fontes */
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size: .9rem;
}

/* ============================================================
   RESET E BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark2) 50%, var(--bg-dark3) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-white);
    font-size: var(--font-size);
}

.container { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
.header { text-align: center; margin-bottom: 40px; }
.header h1 {
    color: var(--text-white);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.header h1 i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}
.header p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: .5px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card, .card-oem, .login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--padding);
    box-shadow: var(--shadow);
}

.login-card { max-width: 400px; margin: 0 auto; padding: 2rem; }
.login-card h3 { color: var(--text-white); }
.login-card .form-label { color: var(--text-label); }

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-white);
    padding: 15px 20px;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-header h5 { color: var(--text-white); margin: 0; }
.card-header h5 i { color: var(--primary); }
.card-body { background: transparent; padding: 20px; }

/* ============================================================
   LABELS (PADRÃO - MODO ESCURO)
   ============================================================ */
.form-label, .form-label-custom {
    font-weight: 600;
    color: var(--text-label);
    margin-bottom: 8px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.form-label-custom i { margin-right: 8px; color: var(--primary); }

/* ============================================================
   INPUTS E SELECTS (MODO ESCURO - PADRÃO)
   ============================================================ */
.form-control, .form-select, .form-select-custom {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-white) !important;
    transition: all .3s;
    width: 100%;
}
.form-control:focus, .form-select:focus, .form-select-custom:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15) !important;
    background: var(--bg-input-hover) !important;
    outline: none;
}
.form-control::placeholder { color: rgba(255, 255, 255, .25) !important; }

.form-select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-select-custom option {
    background: var(--bg-dark2) !important;
    color: var(--text-white) !important;
}
.form-select-custom option:checked {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: var(--text-white) !important;
}
.form-select-custom:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   INPUTS E SELECTS (MODO CLARO - CARDS DE EDIÇÃO)
   ============================================================ */
.card-body .form-select,
.card-body .form-control,
.card-body input[type="text"],
.card-body input[type="number"],
.card-body input[type="url"],
.card-body input[type="file"] {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-white) !important;
}
.card-body .form-select option {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
}
.card-body .form-select:focus,
.card-body .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15) !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
}
.card-body .form-control::placeholder {
    color: var(--text-muted-dark) !important;
}

/* LABELS - Mantém branco para fundo escuro do card */
.card-body .form-label {
    color: var(--text-label) !important;
    font-weight: 600;
}

/* Títulos dentro do card - branco */
.card-body h6 {
    color: var(--text-white) !important;
}

/* Checkbox labels - branco */
.card-body .form-check-label {
    color: var(--text-label) !important;
}

.card-body .form-check-input {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-white) !important;
}
.card-body .form-check-input:checked {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.card-body .border,
.card-body hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.card-body .text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
}
.card-body .input-group .form-control {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-white) !important;
    border-right: none !important;
}
.card-body .input-group .btn {
    border: 1px solid var(--border-white) !important;
}

/* Select específico nos cards de edição */
.card .form-select {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-white) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}
.card .form-select option {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
}

/* ============================================================
   FILTROS (MODO ESCURO)
   ============================================================ */
.filter-section .form-control,
.filter-section .form-select,
.filter-section input[type="number"],
.filter-section input[type="text"] {
    background: var(--bg-filter) !important;
    border: 1px solid var(--border-filter) !important;
    color: var(--text-white) !important;
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: .9rem;
}
.filter-section .form-control::placeholder,
.filter-section input[type="number"]::placeholder,
.filter-section input[type="text"]::placeholder {
    color: rgba(255, 255, 255, .5) !important;
}
.filter-section .form-select option {
    background: var(--bg-dark2) !important;
    color: var(--text-white) !important;
}
.filter-section .form-control:focus,
.filter-section .form-select:focus,
.filter-section input[type="number"]:focus,
.filter-section input[type="text"]:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2) !important;
    background: var(--bg-filter-hover) !important;
    outline: none;
}
.filter-section .form-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: .7rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.filter-section {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border-light);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

/* ============================================================
   CHECKBOX
   ============================================================ */
.form-check-input {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label { color: var(--text-label); }

/* ============================================================
   AUTOFILL
   ============================================================ */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-dark2) inset !important;
    -webkit-text-fill-color: var(--text-white) !important;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
    border: 0;
}
.btn i { margin-right: 8px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    box-shadow: var(--shadow-primary-hover);
    color: var(--text-white);
}

.btn-secondary {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, .6);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    color: var(--text-white);
    box-shadow: var(--shadow-success);
}
.btn-success:hover {
    box-shadow: var(--shadow-success-hover);
    color: var(--text-white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-dark), var(--danger));
    color: var(--text-white);
    box-shadow: var(--shadow-danger);
}
.btn-danger:hover {
    box-shadow: var(--shadow-danger-hover);
    color: var(--text-white);
}

/* Botões da tabela */
.table .btn-outline-primary {
    background: rgba(var(--primary-rgb), .1);
    border: 1px solid rgba(var(--primary-rgb), .2);
    color: var(--primary);
}
.table .btn-outline-primary:hover {
    background: rgba(var(--primary-rgb), .2);
    transform: translateY(-2px);
}
.table .btn-outline-danger {
    background: rgba(255, 107, 107, .1);
    border: 1px solid rgba(255, 107, 107, .2);
    color: var(--danger);
}
.table .btn-outline-danger:hover {
    background: rgba(255, 107, 107, .2);
    transform: translateY(-2px);
}
.table .btn-outline-secondary {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-light);
    color: rgba(255, 255, 255, .4);
}
.table .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--text-white);
    transform: translateY(-2px);
}
.table-actions { white-space: nowrap; }
.table-actions form { display: inline; }

/* ============================================================
   BOTÕES DE DOWNLOAD (OEM)
   ============================================================ */
.btn-download {
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s;
    border: 0;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}
.btn-download i { margin-right: 10px; }
.btn-download:hover { transform: translateY(-2px); text-decoration: none; color: var(--text-white); }

.btn-drivers {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}
.btn-drivers:hover { box-shadow: var(--shadow-primary-hover); color: var(--text-white); }

.btn-bios {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    color: var(--text-white);
    box-shadow: var(--shadow-success);
}
.btn-bios:hover { box-shadow: var(--shadow-success-hover); color: var(--text-white); }

.btn-site {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(13, 202, 240, .35);
}
.btn-site:hover { box-shadow: 0 12px 35px rgba(13, 202, 240, .5); color: var(--text-white); }

.btn-download.disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.btn-download.disabled:hover { transform: none !important; box-shadow: none !important; }

/* ============================================================
   BARRA ADMIN
   ============================================================ */
.admin-bar {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.admin-bar div:first-child { color: var(--text-white); font-weight: 600; }
.admin-bar div:first-child i { color: var(--primary); }
.admin-bar .me-3 { color: var(--text-muted); }
.admin-bar .btn-outline-danger {
    background: rgba(255, 107, 107, .15);
    border: 1px solid rgba(255, 107, 107, .2);
    color: var(--danger);
}
.admin-bar .btn-outline-danger:hover {
    background: rgba(255, 107, 107, .25);
    transform: translateY(-2px);
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */
.nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.nav-tabs .nav-link {
    color: var(--text-muted);
    border: 0;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-tabs .nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, .04);
}
.nav-tabs .nav-link.active {
    color: var(--text-white);
    background: rgba(var(--primary-rgb), .15);
    border-bottom: 2px solid var(--primary);
}
.nav-tabs .nav-link.disabled {
    color: rgba(255, 255, 255, .15);
    cursor: not-allowed;
}

/* ============================================================
   TABELAS
   ============================================================ */
.table, .table-bordered, .table td, .table th,
.table-bordered td, .table-bordered th {
    border: none !important;
    border-color: transparent !important;
}
.table tbody tr { border-bottom: 1px solid var(--border-light) !important; }
.table tbody tr:last-child { border-bottom: none !important; }
.table thead th {
    background: rgba(255, 255, 255, .03) !important;
    color: rgba(255, 255, 255, .35) !important;
    border-bottom: 2px solid var(--border-light) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    padding: 10px 8px !important;
}
.table td, .table th {
    background: transparent !important;
    color: rgba(255, 255, 255, .8) !important;
    padding: 8px !important;
}
.table tbody tr:hover { background: var(--bg-card-hover) !important; }
.table a { color: var(--primary); text-decoration: none; }
.table a:hover { color: var(--primary-light); }
.table code {
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .6);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================================
   COLLAPSE
   ============================================================ */
.collapse-row .card {
    background: rgba(0, 0, 0, .2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 10px 0;
}
.collapse-row .card-body { color: rgba(255, 255, 255, .9) !important; }
.collapse-row .card-body strong {
    color: var(--primary) !important;
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-suportado {
    background: rgba(40, 167, 69, .15);
    color: var(--success);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .75rem;
}
.badge-legacy {
    background: rgba(255, 140, 0, .15);
    color: var(--warning);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .75rem;
}
.badge-eol {
    background: rgba(255, 107, 107, .15);
    color: var(--danger);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .75rem;
}
.badge-arquitetura {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 600;
    margin-left: 6px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .6);
}
.badge-intel { background: rgba(0, 113, 197, .3); color: var(--intel); }
.badge-amd { background: rgba(237, 28, 36, .3); color: var(--amd); }

/* Badges certificação */
.badge-bronze { background: rgba(205, 127, 50, .2); color: var(--bronze); padding: 3px 12px; border-radius: var(--radius-sm); }
.badge-prata { background: rgba(192, 192, 192, .2); color: var(--prata); padding: 3px 12px; border-radius: var(--radius-sm); }
.badge-ouro { background: rgba(255, 215, 0, .2); color: var(--ouro); padding: 3px 12px; border-radius: var(--radius-sm); }
.badge-platina { background: rgba(229, 228, 226, .2); color: var(--platina); padding: 3px 12px; border-radius: var(--radius-sm); }
.badge-titanio { background: rgba(170, 170, 170, .2); color: var(--titanio); padding: 3px 12px; border-radius: var(--radius-sm); }

.count-badge {
    background: rgba(255, 255, 255, .05);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
}

/* Status badge (OEM) */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.status-suportado { background: rgba(40, 167, 69, .2); color: var(--success); }
.status-legacy { background: rgba(255, 140, 0, .2); color: var(--warning); }
.status-eol { background: rgba(255, 107, 107, .2); color: var(--danger); }

/* ============================================================
   ALERTAS
   ============================================================ */
.alert { border-radius: var(--radius-sm); }
.alert-success {
    background: rgba(40, 167, 69, .15);
    border: 1px solid rgba(40, 167, 69, .2);
    color: var(--success);
}
.alert-danger {
    background: rgba(255, 107, 107, .15);
    border: 1px solid rgba(255, 107, 107, .2);
    color: var(--danger);
}
.alert-info {
    background: rgba(13, 202, 240, .15);
    border: 1px solid rgba(13, 202, 240, .2);
    color: var(--info);
}
.btn-close { filter: brightness(0) invert(1); }

/* ============================================================
   INFO PANEL (OEM)
   ============================================================ */
.info-panel {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-top: 20px;
}
.info-panel small {
    color: rgba(255, 255, 255, .3);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}
.info-panel strong { color: rgba(255, 255, 255, .9); font-weight: 600; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-muted { color: var(--text-muted) !important; }
hr, .divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 25px 0;
}
h6 { color: var(--text-white); }
.border { border-color: var(--border-light) !important; }

/* Remove setas do number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: var(--radius-xs); }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), .3); border-radius: var(--radius-xs); }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), .5); }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#downloadArea { animation: fadeIn .3s ease; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 992px) {
    .container { max-width: 100%; padding: 0 15px; }
}
@media (max-width: 768px) {
    body { padding: 15px 10px; }
    .card, .card-oem, .login-card { padding: var(--padding-sm); border-radius: 18px; }
    .header h1 { font-size: 1.6rem; }
    .header p { font-size: .85rem; }
    .admin-bar { flex-direction: column; gap: 10px; text-align: center; padding: 15px; }
    .filter-section .col-md-2, .filter-section .col-md-3 { margin-bottom: 10px; }
    .table-responsive { font-size: .8rem; }
    .form-control, .form-select, .form-select-custom { padding: 10px 14px; font-size: .9rem; }
    .btn { padding: 10px 18px; font-size: .9rem; }
    .btn-download { padding: 12px 18px; font-size: .9rem; }
    .info-panel { padding: 16px 18px; }
}
@media (max-width: 480px) {
    body { padding: 10px 5px; }
    .card, .card-oem, .login-card { padding: var(--padding-xs); border-radius: 14px; }
    .header h1 { font-size: 1.3rem; }
    .header p { font-size: .75rem; }
    .form-label, .form-label-custom { font-size: .7rem; }
    .form-control, .form-select, .form-select-custom { padding: 8px 12px; font-size: .85rem; border-radius: var(--radius-xs); }
    .btn { padding: 8px 14px; font-size: .8rem; border-radius: var(--radius-xs); }
    .btn-download { padding: 10px 14px; font-size: .8rem; border-radius: var(--radius-xs); }
    .btn-site { padding: 10px 14px; font-size: .8rem; border-radius: var(--radius-xs); }
    .info-panel { padding: 12px; }
    .info-panel strong { font-size: .9rem; }
    .nav-tabs .nav-link { padding: 8px 12px; font-size: .8rem; }
}
@media (max-height: 600px) and (orientation: landscape) {
    body { padding: 10px; }
    .header { margin-bottom: 15px; }
    .header h1 { font-size: 1.4rem; }
    .card, .card-oem, .login-card { padding: var(--padding-xs); }
    .form-control, .form-select, .form-select-custom { padding: 6px 10px; font-size: .85rem; }
    .btn { padding: 6px 12px; font-size: .8rem; }
    .btn-download { padding: 8px 14px; font-size: .8rem; }
    .info-panel { padding: 10px 14px; margin-top: 10px; }
    .admin-bar { padding: 8px 15px; margin-bottom: 10px; }
}