:root {
    --bg-primary: #0f1419;
    --bg-card: #1a1f25;
    --bg-card-alt: #141920;
    --bg-hover: #1f252b;
    --bg-input: #0f1419;

    --border-primary: #2a2f35;
    --border-secondary: #2a2a2a;
    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-gold-light: rgba(212, 175, 55, 0.2);

    --text-white: #ffffff;
    --text-primary: #e0e0e0;
    --text-secondary: #cccccc;
    --text-muted: #cccccc;
    --text-subtle: #999999;
    --text-dim: #666666;
    --text-label: #aaaaaa;
    --text-placeholder: rgba(255, 255, 255, 0.25);

    --accent-gold: #d4af37;
    --accent-gold-dark: #b8962e;
    --accent-gold-glow: rgba(212, 175, 55, 0.15);

    --status-success: #28a745;
    --status-success-bg: rgba(40, 167, 69, 0.15);
    --status-warning: #ffc107;
    --status-warning-bg: rgba(255, 193, 7, 0.15);
    --status-danger: #dc3545;
    --status-danger-bg: rgba(220, 53, 69, 0.15);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 600;
}

p, .text-muted {
    color: var(--text-muted);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-white);
}

.ds-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform var(--transition-fast);
}

.ds-card:hover {
    transform: translateY(-2px);
}

.ds-card-alt {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.ds-metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
}

.ds-metric-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ds-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ds-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--bg-primary);
}

.ds-btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ds-btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.ds-input {
    background: var(--bg-input);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    color: var(--text-white);
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color var(--transition-fast);
    width: 100%;
}

.ds-input:focus {
    background: var(--bg-input);
    border-color: var(--accent-gold);
    color: var(--text-white);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
    outline: none;
}

.ds-input::placeholder {
    color: var(--text-placeholder);
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
}

.ds-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 2px solid var(--border-primary);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ds-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--bg-hover);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ds-table tr:hover td {
    background: var(--bg-hover);
}

.ds-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.ds-page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}

.ds-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ds-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.ds-back-link:hover {
    color: var(--accent-gold);
}

.ds-badge-success {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--status-success-bg);
    color: var(--status-success);
}

.ds-badge-warning {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.ds-badge-danger {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.ds-navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    padding: 0.75rem 0;
}

.ds-navbar .navbar-brand {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.25rem;
}

.ds-navbar .navbar-brand:hover {
    color: var(--accent-gold);
}

.ds-navbar .nav-link {
    color: var(--text-muted);
}

.ds-navbar .nav-link:hover {
    color: var(--text-white);
}

.ds-navbar .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.ds-navbar .dropdown-item {
    color: var(--text-primary);
}

.ds-navbar .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.ds-navbar .dropdown-divider {
    border-color: var(--border-primary);
}

.ds-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
    transition: all var(--transition-fast);
}

.ds-tabs .nav-link:hover {
    color: var(--accent-gold);
    background: transparent;
}

.ds-tabs .nav-link.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: transparent;
}

.ds-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-primary);
    min-height: 100vh;
}

.ds-sidebar .nav-link {
    color: var(--text-muted);
    border-radius: var(--radius-md);
    margin: 2px 0;
    padding: 0.5rem 1rem;
}

.ds-sidebar .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.ds-sidebar .nav-link.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.ds-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-hover);
    font-size: 0.85rem;
}

.ds-stat-row:last-child {
    border-bottom: none;
}

.ds-stat-row span:first-child {
    color: var(--text-label);
}

.ds-stat-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.ds-alert-success {
    background: var(--status-success-bg);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--status-success);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.ds-alert-danger {
    background: var(--status-danger-bg);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.ds-alert-info {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #6ea8fe;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.ds-form-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.ds-form-text {
    font-size: 0.8rem;
    color: var(--text-dim);
}
