/* ================================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}

body {
    background: #F1F5F9;
    color: #0F172A;
    direction: rtl;
    padding-bottom: 50px;
}

/* ================================
   HEADER
================================= */

header {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    padding: 25px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.header-content {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-text h1 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 5px;
}

.header-text p {
    color: #CBD5E1;
    font-size: 18px;
}

/* ================================
   CONTAINER
================================= */

.container {
    width: 90%;
    margin: 30px auto;
}

/* ================================
   TABS
================================= */

.tabs {
    display: flex;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    justify-content: center;
}

.tab-btn {
    background: #E2E8F0;
    border: none;
    margin: 0 10px;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.25s;
}

.tab-btn.active {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
    transform: translateY(-2px);
}

/* ================================
   CARD
================================= */

.card {
    background: #FFF;
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* ================================
   FORM STYLING
================================= */

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #CBD5E1;
    border-radius: 10px;
    transition: 0.3s;
}

input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 5px rgba(37,99,235,0.4);
}

.error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* ================================
   BUTTONS
================================= */

.btn {
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: 0.25s;
}

.btn-primary {
    background: #2563EB;
    color: #fff;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-secondary {
    background: #CBD5E1;
}

.btn-secondary:hover {
    background: #94A3B8;
}

/* ================================
   SUCCESS MESSAGE
================================= */

.success-message {
    background: #22C55E;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 20px;
    display: none;
}

/* ================================
   DASHBOARD STATS
================================= */

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    flex: 1;
    background: #FFF;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 18px;
    color: #475569;
}

.stat-number {
    margin-top: 10px;
    font-size: 35px;
    color: #2563EB;
    font-weight: bold;
}

/* ================================
   TABLE
================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead tr {
    background: #2563EB;
    color: #fff;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid #E2E8F0;
}

tbody tr:nth-child(even) {
    background: #F8FAFC;
}

tbody tr:hover {
    background: #DBEAFE;
}

/* ================================
   EMPTY STATE
================================= */

.empty-state {
    text-align: center;
    padding: 40px;
    color: #475569;
}

.empty-state-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

/* ================================
   PAGINATION
================================= */

.pagination button {
    background: #2563EB;
    color: #fff;
    border-radius: 8px;
}

.pagination button:hover {
    background: #1D4ED8;
}
