:root {
    --primary-color: #C5A059; /* Gold Sidebar */
    --hover-color: #B38F4D;
    --active-bg: #002B5B; /* Dark Blue active */
    --main-bg: #F8FAFB;
    --text-main: #333333;
    --text-muted: #7A7A7A;
    --white: #FFFFFF;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--main-bg);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Layout */
.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-container {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: var(--active-bg);
    margin-bottom: 5px;
}

.role-badge {
    font-size: 14px;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    font-size: 15px;
}

.nav-item a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-item.active a {
    background-color: var(--active-bg);
    border-radius: 0 30px 30px 0;
    margin-right: 15px;
}

.nav-item a:hover:not(.active) {
    background-color: var(--hover-color);
}

.nav-submenu {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.05);
}

/* Main Content Area */
.main-wrapper {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    height: 70px;
    background: var(--white);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.username {
    font-weight: 600;
    color: #444;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #DDD;
}

.content-body {
    padding: 30px 40px;
}

/* Dashboard Cards/Tables */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-select {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: #EEE;
    min-width: 150px;
}

.search-box {
    margin-left: auto;
    position: relative;
}

.search-input {
    padding: 10px 15px 10px 40px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    width: 250px;
}

/* Order Table */
.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.order-table th {
    text-align: left;
    padding: 10px 20px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.order-row {
    background: var(--white);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
}

.order-row td {
    padding: 20px;
    font-size: 14px;
}

.order-row td:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.order-row td:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.station-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.station-logo {
    width: 45px;
    height: 45px;
    background: #F0F0F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--active-bg);
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 100px;
}

.status-created { background: #FFF9E6; color: #D4A017; }
.status-approved { background: #E6F9F0; color: #2D6A4F; }
.status-received { background: #FFF2E6; color: #D48806; }
.status-rejected { background: #FFEBE6; color: #A82D19; }
.status-invoice { background: #E6F7FF; color: #0072B5; }

.priority-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
