/* =========================
   WiseGroup Theme (Premium Red + White)
   ========================= */

:root {
    --color-primary: #cf1111;
    --color-primary-dark: #a30d0d;
    --color-accent: #ff3b3b;

    --color-bg: #f6f7fb;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;

    --color-border: #e5e7eb;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --radius: 12px;
    --radius-sm: 8px;

    --shadow-soft: 0 6px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 12px 30px rgba(0,0,0,0.08);

    --transition: all 0.25s ease;
}

/* =========================
   Reset
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* =========================
   Typography
   ========================= */

h1, h2, h3 {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 16px;
}

p {
    margin: 0 0 10px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* =========================
   Layout Base
   ========================= */

.page {
    min-height: 100vh;
}

.content {
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 0 16px;
}

/* =========================
   Cards (White Premium)
   ========================= */

.card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-shell {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    padding-bottom: 20px;
}

.card-shell__top {
    padding: 16px 20px;
}

.card-shell__body {
    padding: 0 20px 10px;
}

/* =========================
   Header / Navigation
   ========================= */

.brand {
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-mark {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav a,
.nav-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav a:hover,
.nav-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* =========================
   Buttons
   ========================= */

.btn {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* =========================
   Forms
   ========================= */

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: span 2;
}

input,
select,
textarea {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* =========================
   Tables
   ========================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* =========================
   Badges
   ========================= */

.badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

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

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

.badge-completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   Notices
   ========================= */

.notice {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-weight: 600;
}

.notice.success {
    background: #ecfdf5;
    color: #065f46;
}

.notice.error {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   Helpers
   ========================= */

.mt-20 { margin-top: 20px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.text-center { text-align: center; }

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }

    .form-actions {
        flex-direction: column;
    }

    .content {
        margin-top: 10px;
    }
}