:root {
    --primary-blue: #273b82;
    --primary-blue-hover: #1f3069;
    --primary-orange: #ef6b22;
    --primary-orange-hover: #db5e1a;
    --bg-color: #f7f9fa;
    --sidebar-text: #a1aec6;
    --sidebar-text-hover: #ffffff;
    --text-dark: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
}

.brand-section {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--sidebar-text);
}

.nav-links {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--sidebar-text-hover);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 0 4px 4px 0;
    margin-right: 12px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.user-email {
    font-size: 12px;
    color: var(--sidebar-text);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.page-header {
    padding: 32px 40px 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.page-description {
    font-size: 14px;
    color: var(--text-muted);
}

.content-area {
    padding: 0 40px 40px;
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* Base Form Elements */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(39, 59, 130, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

.btn-orange {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
}

.btn-block {
    width: 100%;
}

/* Badge Styles */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-success { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info { background-color: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-purple { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.data-table tr:hover td {
    background-color: #f8fafc;
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary-blue);
}

.action-link {
    font-weight: 500;
    text-decoration: none;
    margin-right: 12px;
}
.action-link:hover {
    text-decoration: underline;
}

/* SVG Utilities */
svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
