:root {
    --main: #3993FF;
    --accent: #FF6900;
    --bg: #f4f6fa;
    --dark: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
}

/* ========================
   AUTH / LOGIN & REGISTER
======================== */
.auth-bg {
    background: linear-gradient(135deg, var(--main), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.auth-card {
    background: white;
    padding: 32px;
    width: 360px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.btn-main {
    width: 100%;
    background: var(--main);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-accent {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* ========================
   LAYOUT / DASHBOARD
======================== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: var(--dark);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 22px;
    margin-bottom: 30px;
}

.logo span {
    color: var(--accent);
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    color: #cbd5e1;
    text-decoration: none;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: var(--main);
    color: white;
}

.logout {
    margin-top: auto;
    background: transparent;
    border: 1px solid #374151;
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 32px;
}

h1 {
    margin-bottom: 4px;
    font-size: 28px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

/* ========================
   DASHBOARD CARDS
======================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.card span {
    font-size: 26px;
    font-weight: bold;
    color: var(--main);
}

.card.accent span {
    color: var(--accent);
}

/* ========================
   PANELS
======================== */
.panel {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 6px;
    font-size: 14px;
}

.files a {
    color: var(--main);
    text-decoration: none;
    font-weight: 500;
}

/* ========================
   FACTUREN TABLE
======================== */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.invoice-table th,
.invoice-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.invoice-table th {
    background: #f3f4f6;
    font-weight: 500;
}

.btn-small {
    background: var(--main);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-small.accent {
    background: var(--accent);
}

/* ========================
   TEXT STYLES
======================== */
.muted {
    color: #9ca3af;
    font-size: 13px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    max-width: 85px;
    height: auto;
}

/* ========================
   PANEL HEADERS & CONTENT
======================== */
.panel h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.panel p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========================
   CONTACT FORM (DASHBOARD)
======================== */
.panel form {
    display: grid;
    gap: 14px;
}

.panel input,
.panel textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-family: inherit;
}

.panel textarea {
    min-height: 120px;
    resize: vertical;
}

.panel input:focus,
.panel textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 2px rgba(57,147,255,0.15);
}

/* ========================
   PANEL BUTTON
======================== */
.panel .btn-main {
    width: fit-content;
    padding: 10px 18px;
    font-size: 14px;
}

/* ========================
   SERVICE STATUS BADGES
======================== */
.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.badge.active {
    background: #e6f4ff;
    color: var(--main);
}

.badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.badge.error {
    background: #fee2e2;
    color: #dc2626;
}

/* ========================
   SERVICE ROWS (PANELS)
======================== */
.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9fafb;
    margin-bottom: 8px;
}

.service-row strong {
    font-size: 14px;
}

.service-row .actions {
    display: flex;
    gap: 10px;
}

/* ========================
   SMALL IMPROVEMENTS
======================== */
.btn-small:hover,
.btn-main:hover {
    opacity: 0.9;
}

.files li:hover,
.service-row:hover {
    background: #f1f5f9;
}
