/* ======================================
   Modern Admin Dashboard UI
   Designed for consult.iclkw.com
====================================== */

:root {
    --radius: 10px;
    --sidebar-width: 250px;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;

    --bg: #f1f5f9;
    --text: #1e293b;
    --card: #ffffff;

    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #e2e8f0;
}

.dark-mode {
    --bg: var(--dark-bg);
    --text: var(--dark-text);
    --card: var(--dark-card);
}

/* Global */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Smooth transitions */
body, .card, .sidebar, a, button {
    transition: 0.25s;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
    color: #ffffff;
    position: fixed;
    right: 0;
    top: 0;
    padding: 22px 18px;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
}

.sidebar-header h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    text-decoration: none;
    color: #e2e8f0;
    font-size: 15px;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.18);
}

/* Page Content */
.page-content {
    margin-right: var(--sidebar-width);
    padding: 28px;
}

/* Page Title */
.page-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 20px;
}

/* Cards */
.card {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-bottom: 18px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* Inputs */
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 15px;
    background: #fff;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(37,99,235,.3);
    outline: none;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
}
.btn:hover {
    background: var(--accent-hover);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

table th {
    background: var(--accent);
    color: #fff;
    padding: 14px;
    font-size: 15px;
    text-align: left;
}

table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}

tr:hover td {
    background: var(--accent-light);
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* Dashboard Grid */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.widget {
    background: var(--card);
    padding: 24px 10px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
.widget h2 {
    font-size: 34px;
    margin: 0;
}
.widget p {
    margin-top: 8px;
    font-size: 15px;
    opacity: .8;
}

/* Notes box */
.notes-box {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.note-card {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.note-card:last-child {
    border-bottom: none;
}

.note-card .badge {
    padding: 4px 8px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
}

/* Login page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg);
}

.login-container {
    width: 360px;
}

.login-box {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
