﻿:root {
    --theme: var(--primary);
    /* Primary Colors */
    --primary: #007bff;
    --primary-light: #3395ff;
    --primary-dark: #0062cc;
    /* Secondary Colors */
    --secondary: #6c757d;
    --secondary-light: #868e96;
    --secondary-dark: #495057;
    /* Tertiary Colors */
    --tertiary: #17a2b8;
    --tertiary-light: #35b8ce;
    --tertiary-dark: #138496;
    /* Semantic Colors */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    /* Neutral Colors */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;
    /* Font Family */
    --font-family: 'Barlow', sans-serif;
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Font Sizes */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-md: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */
    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 3rem; /* 48px */
    /* Border Radius */
    --border-radius-sm: 0.125rem; /* 2px */
    --border-radius-md: 0.25rem; /* 4px */
    --border-radius-lg: 0.5rem; /* 8px */
    --border-radius-xl: 1rem; /* 16px */
    --border-radius-pill: 50rem; /* pill shape */
    /* Box Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.ds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ds-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-300);
}

.ds-section-title {
    color: var(--primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
}

.ds-color-swatch {
    width: 100%;
    height: 80px;
    border-radius: var(--border-radius-md);
    margin-bottom: 0.5rem;
}

.ds-color-label {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.ds-typography-sample {
    margin-bottom: 1.5rem;
}

.card-sample {
    height: 100%;
}

.ds-sidebar-sample {
    height: 400px;
    background-color: var(--gray-800);
    border-radius: var(--border-radius-md);
    color: var(--white);
    padding: 1rem;
}

.ds-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700);
}

.ds-sidebar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .ds-sidebar-menu li {
        padding: 0.75rem 1rem;
        cursor: pointer;
    }

        .ds-sidebar-menu li:hover {
            background-color: var(--gray-700);
        }

        .ds-sidebar-menu li.active {
            background-color: var(--primary);
        }

    .ds-sidebar-menu i {
        margin-right: 0.5rem;
        width: 1.25rem;
        text-align: center;
    }

.ds-code {
    background-color: var(--gray-900);
    color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    font-family: monospace;
    margin-top: 1rem;
    white-space: pre-wrap;
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
}

    .ds-table th, .ds-table td {
        padding: 0.75rem;
        border-bottom: 1px solid var(--gray-300);
    }

    .ds-table th {
        text-align: left;
        font-weight: var(--font-weight-semibold);
    }

.component-example {
    padding: 1.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.ds-button {
    display: inline-block;
    font-weight: var(--font-weight-medium);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-md);
    border-radius: var(--border-radius-md);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ds-button-primary {
    color: var(--white);
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

    .ds-button-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.ds-button-secondary {
    color: var(--white);
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
}

    .ds-button-secondary:hover {
        background-color: var(--secondary-dark);
        border-color: var(--secondary-dark);
    }

.ds-button-tertiary {
    color: var(--white);
    background-color: var(--tertiary);
    border: 1px solid var(--tertiary);
}

    .ds-button-tertiary:hover {
        background-color: var(--tertiary-dark);
        border-color: var(--tertiary-dark);
    }

.ds-button-outline-primary {
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
}

    .ds-button-outline-primary:hover {
        color: var(--white);
        background-color: var(--primary);
    }

.ds-form-group {
    margin-bottom: 1rem;
}

.ds-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
}

.ds-input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--gray-700);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--gray-400);
    border-radius: var(--border-radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .ds-input:focus {
        color: var(--gray-700);
        background-color: var(--white);
        border-color: var(--primary-light);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.ds-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: border-box;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
}

.ds-card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

.ds-card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.ds-card-title {
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.ds, chart-container {
    height: 300px;
    width: 100%;
}

.ds-alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
}

.ds-alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.ds-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.ds-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.ds-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.ds-badge {
    display: inline-block;
    padding: 0.4em 0.4em;
    font-size: 75%;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-pill);
}

.ds-badge-primary {
    color: var(--white);
    background-color: var(--primary);
}

.ds-badge-secondary {
    color: var(--white);
    background-color: var(--secondary);
}

.ds-badge-success {
    color: var(--white);
    background-color: var(--success);
}

.ds-badge-danger {
    color: var(--white);
    background-color: var(--danger);
}

.ds-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-modal {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    width: 500px;
    max-width: 90%;
}

.ds-modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-modal-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.ds-modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--gray-600);
}

.ds-modal-body {
    padding: 1rem;
}

.ds-modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ds-table-container {
    overflow-x: auto;
}

.ds-datatable {
    width: 100%;
    border-collapse: collapse;
}

    .ds-datatable th, .ds-datatable td {
        padding: 0.75rem;
        border-bottom: 1px solid var(--gray-300);
    }

    .ds-datatable th {
        background-color: var(--gray-100);
        text-align: left;
        font-weight: var(--font-weight-semibold);
    }

    .ds-datatable tbody tr:hover {
        background-color: var(--gray-100);
    }

.ds-datatable-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.25rem;
}

.ds-datatable-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

    .ds-datatable-pagination-item.active {
        background-color: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .ds-datatable-pagination-item:hover:not(.active) {
        background-color: var(--gray-200);
    }

.ds-grid-example {
    margin-bottom: 1.5rem;
}

    .ds-grid-example .row .col,
    .ds-grid-example .row .col-md-6,
    .ds-grid-example .row .col-lg-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        background-color: var(--primary-light);
        color: var(--white);
        border: 1px solid var(--primary);
        text-align: center;
    }
