/* ==============================
   ROOT VARIABLES (BRANDING)
============================== */
:root {
    --olkazi-primary: #0A3D62;
    --olkazi-secondary: #3C6382;
    --olkazi-light: #F5F6FA;
    --olkazi-dark: #1E272E;
    --olkazi-danger: #dc3545;
    --olkazi-success: #1e7e34;
}

/* ==============================
   GLOBAL RESET
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--olkazi-light);
    color: var(--olkazi-dark);
}

/* ==============================
   LAYOUT
============================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 30px 0;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* ==============================
   TOP HEADER
============================== */
.main-header {
    background-color: var(--olkazi-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

.main-nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
}

.main-nav a:hover {
    text-decoration: underline;
}

.user-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* ==============================
   PAGE HEADER
============================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    font-size: 22px;
}

/* ==============================
   ALERTS
============================== */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.success {
    background: #e6f4ea;
    color: var(--olkazi-success);
}

.alert.error {
    background: #fdecea;
    color: var(--olkazi-danger);
}

/* ==============================
   BUTTONS
============================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    color: #fff;
}

.btn-add {
    background: var(--olkazi-primary);
}

.btn-add:hover {
    background: var(--olkazi-secondary);
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: var(--olkazi-danger);
}

.btn-delete:hover {
    background: #c82333;
}

/* ==============================
   TABLES (PRIMARY LIST UI)
============================== */
.table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.modern-table thead {
    background: #f1f5f9;
}

.modern-table th,
.modern-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.modern-table th {
    font-weight: 600;
}

.modern-table tbody tr:hover {
    background: #f9fafb;
}

.actions {
    display: flex;
    gap: 10px;
}

/* ==============================
   FORMS
============================== */
form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 500px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
}

button {
    background: var(--olkazi-primary);
    color: #fff;
    border: none
