/* =============================
   THEME VARIABLES
============================= */

:root {

    --primary: #6700ff;
    --primary-dark: #5300cc;
    --primary-light: #efe7ff;

    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --bg-sidebar: #16181d;

    --text-main: #222;
    --text-muted: #666;
    --text-light: #999;

    --border: #e5e7eb;

    --success: #0f9d58;
    --danger: #e53935;
    --warning: #ff9800;

    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
}

/* =============================
   GLOBAL RESET
============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:
        Inter,
        Arial,
        sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

/* =============================
   AUTH LAYOUT (Login)
============================= */

.full-height {
    height: 100%;
    display: flex;
}

.signup-container {
    display: flex;
    justify-content: center;
}

.split-left,
.split-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-left {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 60px;
}

.split-right {
    background-color: #f4f6f8;
    padding: 30px;
    overflow-y: auto;
}

.branding h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.branding p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    color: #555;
}

/* =============================
   MODERN LOGIN
============================= */

/* .login-page {
    height: 100%;
    display: flex;
    background:
        radial-gradient(circle at top left, #7f39fb 0%, #6700ff 35%, #3f00b5 100%);
}

.login-left {
    width: 55%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -120px;
    left: -120px;
}

.login-left::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
}

.login-branding {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.login-branding .tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.login-branding h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.login-branding p {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.92;
}

.login-features {
    margin-top: 40px;
    display: grid;
    gap: 18px;
}

.login-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.login-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.login-right {
    width: 45%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.login-card {
    width: 420px;
    padding: 50px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
}

.login-card h2 {
    text-align: left;
    font-size: 32px;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.login-card input {
    height: 48px;
    border-radius: 10px;
}

.login-card .btn {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}

.login-footer-links {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
}

.login-footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer-links a:hover {
    text-decoration: underline;
} */

/* =============================
   PAGE WRAPPER
============================= */

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* =============================
   HEADER
============================= */

.header {
    height: 64px;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.header-left {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;
    font-weight: 600;
}

.header-right {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 24px;
    gap: 15px;
    font-weight: 600;
}

/* =============================
   MAIN WRAPPER
============================= */

.main-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* =============================
   SIDEBAR
============================= */

.sidebar {
    width: 240px;
    background-color: var(--bg-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav {
    padding: 20px;
    flex: 1;
    list-style-type: none;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-nav a:hover {
    color: #ffffff;
}

.sidebar-bottom {
    height: 220px;
    margin: 10px;
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* =============================
   FOOTER
============================= */

.footer {
    height: 64px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

/* =============================
   CONTENT AREA
============================= */

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

/* =============================
   PAGE CONTENT
============================= */

.content {
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =============================
   KPI CARDS
============================= */

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}

.kpi-card {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.kpi-card .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.kpi-card .value {
    font-size: 24px;
    font-weight: bold;
}

/* =============================
   CARD SYSTEM
============================= */

.card {
    width: 420px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.card h3 {
    margin-bottom: 5px;
}

.card-wide {
    width: 600px;
}

/* =============================
   BUTTONS
============================= */

.btn {
    padding: 10px 16px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-full {
    width: 100%;
}

/* =============================
   TABLE SYSTEM
============================= */

.table-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

.action-link {
    color: #1e88e5;
    cursor: pointer;
    text-decoration: none;
}

.limit-width-ellipsis {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limit-width {
    max-width: 100px;
    overflow-wrap: break-word;
    white-space: normal;
}

.limit-width-long {
    max-width: 150px;
    overflow-wrap: break-word;
    white-space: normal;
}

.text-muted {
    color: #888;
}

/* =============================
   FORMS
============================= */

label {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: #555;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-half-width {
    width: 50%;
    margin: 0 auto;
}

.required::after {
    content: " *";
    color: red;
}

/* =============================
   UTILITIES
============================= */

.hidden {
    display: none;
}

.error {
    color: red;
}