:root {
    --primary-color: #00bf78; /* Zoop Green */
    --secondary-color: #1e293b;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 260px;
    --border-color: #f1f5f9;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid var(--border-color);
    z-index: 1050;
    transition: var(--transition);
    padding: 20px 0;
}

.sidebar-logo {
    padding: 0 25px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo img {
    height: 24px;
}

.nav-menu {
    list-style: none;
    padding: 0 15px;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.nav-link.active {
    background: #e6f9f2;
    color: var(--primary-color) !important;
}

.nav-link.active i {
    color: var(--primary-color);
}

/* --- Layout --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Cards --- */
.qz-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.qz-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Auth Pages --- */
.auth-bg {
    background: #fff;
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    position: relative;
    z-index: 2;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Auth background decorative shape */
.auth-shape {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 80%;
    background: #e6f9f2;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    opacity: 0.5;
    z-index: 1;
}

/* --- Documentation Split --- */
.doc-wrapper {
    display: flex;
    height: calc(100vh - 70px);
}

.doc-nav {
    width: 280px;
    border-right: 1px solid var(--border-color);
    background: #fff;
    overflow-y: auto;
    padding: 30px 20px;
}

.doc-content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    background: #fff;
}

.doc-code {
    width: 450px;
    background: #0f172a;
    color: #fff;
    padding: 40px;
    overflow-y: auto;
}

/* --- Inputs & Buttons --- */
.form-control-qz {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-qz:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 191, 120, 0.1);
    outline: none;
}

.btn-qz-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-qz-primary:hover {
    background: #00a165;
    transform: translateY(-1px);
}

.btn-qz-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-qz-outline:hover {
    background: #f1f5f9;
}

/* --- Tables --- */
.table-qz {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-qz th {
    background: #f8fafc;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table-qz td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

/* --- Badges --- */
.badge-qz {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-qz-success { background: #e6f9f2; color: var(--primary-color); }
.badge-qz-warning { background: #fffbeb; color: #d97706; }
.badge-qz-danger { background: #fef2f2; color: #ef4444; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .main-wrapper { margin-left: 0; }
    .sidebar.show { transform: translateX(0); }
    .auth-bg { flex-direction: column; }
    .auth-left { display: none; }
    .doc-wrapper { flex-direction: column; }
    .doc-nav, .doc-code { width: 100%; height: auto; }
}

/* Stats Mini Cards */
.stat-mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
}
