/* ===========================
   GENERAL
=========================== */

body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    background: #f5f5f5;
    color: #222;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar {
    width: 270px;
    background: #ffffff;
    border-left: 6px solid #ff8800;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.brand {
    text-align: center;
    margin-bottom: 25px;
}

.brand-title {
    font-size: 26px;
    font-weight: bold;
    color: #ff8800;
    margin-bottom: 10px;
}

.rest-logo {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #ff8800;
    margin: auto;
}

.rest-logo.placeholder {
    width: 120px;
    height: 120px;
    background: #eee;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.menu a {
    display: block;
    padding: 12px 15px;
    margin: 5px 0;
    text-decoration: none;
    font-size: 16px;
    color: #444;
    border-radius: 8px;
    transition: 0.2s;
}

.menu a:hover {
    background: #ff8800;
    color: white;
}

/* Logout button */
.logout {
    margin-top: auto;
    display: block;
    background: #ff3b3b;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.logout:hover {
    background: #d90000;
}

/* ===========================
   MAIN CONTENT
=========================== */

.content {
    flex: 1;
    padding: 30px;
}

h1,h2,h3 {
    margin-top: 0;
}

/* Dashboard cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    text-align: center;
}

.card .value {
    font-size: 32px;
    color: #ff8800;
    font-weight: bold;
}

/* Tables */
.table-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-top: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

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

th,td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

th {
    background: #fff3e0;
    color: #ff8800;
    font-weight: bold;
}
/* =============================
   PAGE TITLE & ACTIONS
============================= */
.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.top-actions {
    margin-bottom: 20px;
    text-align: left;
}

.btn-add {
    background: #ff8800;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-add:hover {
    background: #e67300;
}

/* =============================
   TABLE STYLE
============================= */

.table-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0,0,0,0.06);
}

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

.styled-table thead th {
    padding: 12px;
    background: #fff3e0;
    color: #ff8800;
    border-bottom: 2px solid #ff8800;
    text-align: center;
}

.styled-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.styled-table .empty {
    text-align: center;
    padding: 25px;
    font-size: 16px;
    color: #666;
}

/* =============================
   BADGES
============================= */

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

.badge.green {
    background: #28a745;
    color: #fff;
}

.badge.red {
    background: #dc3545;
    color: #fff;
}

/* =============================
   ACTION BUTTONS
============================= */

.actions .btn-sm {
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    margin: 0 3px;
    display: inline-block;
}

.btn-sm.edit { background: #007bff; }
.btn-sm.edit:hover { background: #0066d6; }

.btn-sm.delete { background: #dc3545; }
.btn-sm.delete:hover { background: #bb1e31; }
