/* =============================================
   Genesys Audit Tool - Shared Styles
   ============================================= */

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #eef1f5;
    color: #2d3748;
    line-height: 1.6;
    font-size: 14px;
}

/* ---- Layout ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px 40px;
}

/* ---- Top Nav ---- */
.nav {
    background: #1e293b;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav a {
    display: inline-block;
    padding: 14px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: #334155;
}

/* ---- Page Header ---- */
h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 25px 0 5px;
}

h1 + p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 13px;
}

/* ---- Section Headers ---- */
h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

h2 .count {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

/* ---- Cards / Panels ---- */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---- Tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-yes {
    background: #dcfce7;
    color: #166534;
}

.badge-no {
    background: #fef3c7;
    color: #92400e;
}

/* ---- Summary Box ---- */
.summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 15px;
}

.summary .total {
    font-weight: 700;
    font-size: 20px;
}

.summary .total.ok { color: #16a34a; }
.summary .total.warn { color: #dc2626; }

/* ---- Status Messages ---- */
.status-ok {
    color: #16a34a;
    font-weight: 600;
    padding: 10px 0;
}

.status-empty {
    color: #94a3b8;
    font-style: italic;
    padding: 10px 0;
}

.message {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.message-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.message-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ---- Forms ---- */
select,
input[type="number"],
input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.multi-select {
    width: 100%;
    height: 200px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.select-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-row label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}

.add-options {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.add-options label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-add {
    background: #16a34a;
    color: #fff;
}

.btn-add:hover {
    background: #15803d;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    padding: 5px 12px;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #2563eb;
}

/* ---- Division Selector ---- */
.division-select {
    margin-bottom: 20px;
}

.division-select select {
    min-width: 300px;
}

.configuring-label {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0 5px;
}
