/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
:root {
    --primary-color: #1890ff;
    --secondary-color: #f0f2f5;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e8e8e8;
    --white: #fff;
    --sidebar-bg: #001529;
    --sidebar-text: #fff;
    --header-height: 64px;
    --sidebar-width: 200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: #40a9ff;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ==========================================================================
   Common Components
   ========================================================================== */
/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    height: var(--header-height);
    line-height: var(--header-height);
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #002140;
    color: #fff;
}

.nav-menu {
    padding-top: 16px;
}

.nav-item {
    display: block;
}

.nav-link {
    display: block;
    padding: 0 24px;
    height: 40px;
    line-height: 40px;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    color: #fff;
}

/* Inputs */
.input {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* Tables */
.table-container {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #fafafa;
    font-weight: 500;
}

.table tr {
    transition: background-color 0.3s;
}

.table tr:hover {
    background-color: #fafafa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa; /* Optional: if zebra striping is needed globally, though user requested specific */
}
