﻿/* ===================================
   MOBILE TOP BAR
=================================== */

.topbar-mobile {
    display: none;
    align-items: center;
    gap: 15px;
    height: 60px;
    padding: 0 15px;
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.mobile-title {
    font-size: 18px;
    font-weight: 700;
}

.menu-toggle {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* ===================================
   LAYOUT
=================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* ===================================
   SIDEBAR
=================================== */

.sidebar {
    width: 280px;
    background: #0f172a;
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all .3s ease;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #475569;
        border-radius: 10px;
    }

.sidebar-logo {
    padding: 22px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: #020617;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar ul {
    margin: 0;
    padding: 15px;
    list-style: none;
}

.menu-title {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    padding: 8px 12px;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all .25s ease;
}

    .sidebar a:hover {
        background: rgba(37,99,235,.15);
        color: #fff;
        padding-left: 20px;
    }

    .sidebar a.active {
        background: #2563eb;
        color: #fff;
    }

/* ===================================
   CONTENT
=================================== */

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 25px;
}

/* ===================================
   HEADER
=================================== */

.dashboard-header {
    background: #fff;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dashboard-header h1 {
        margin: 0;
        color: #0f172a;
        font-size: 28px;
    }

    .dashboard-header p {
        margin-top: 6px;
        color: #64748b;
    }

/* ===================================
   USER PROFILE
=================================== */

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #1e293b;
}

.btn-logout {
    border: none;
    background: #ef4444;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
    font-weight: 600;
}

    .btn-logout:hover {
        background: #dc2626;
    }

/* ===================================
   OVERLAY
=================================== */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
}

/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {

    .topbar-mobile {
        display: flex;
    }

    .sidebar {
        left: -280px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
    }

        .sidebar.show-sidebar {
            left: 0;
        }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-profile {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===================================
   SMALL MOBILE
=================================== */

@media (max-width: 480px) {

    .dashboard-header {
        padding: 15px;
    }

        .dashboard-header h1 {
            font-size: 22px;
        }

    .sidebar {
        width: 260px;
        left: -260px;
    }

        .sidebar.show-sidebar {
            left: 0;
        }

    .admin-name {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 14px;
    }
}
/* ==========================
   PAGE TITLE
========================== */

h2 {
    margin: 0 0 25px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================
   DASHBOARD GRID
========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ==========================
   DASHBOARD CARD
========================== */

.dashboard-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

    .dashboard-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient( 90deg, #2563eb, #3b82f6 );
    }

    .dashboard-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

/* ==========================
   CARD ICON
========================== */

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: white;
}

/* ==========================
   CARD TITLE
========================== */

.dashboard-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
}

/* ==========================
   CARD DESCRIPTION
========================== */

.dashboard-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: auto;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .dashboard-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    h2 {
        font-size: 24px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .dashboard-card h3 {
        font-size: 18px;
    }
}
/*Notification page*/
.cms-wrapper {
    padding: 20px;
    background: #f4f6fb;
    font-family: 'Segoe UI', sans-serif;
}

/* HEADER */
.cms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .cms-header h2 {
        margin: 0;
    }

    .cms-header p {
        margin: 0;
        font-size: 13px;
        color: gray;
    }

/* GRID */
.cms-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
}

/* CARD */
.cms-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* FORM */
.form-card label {
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-card textarea {
    min-height: 90px;
    resize: none;
}

.adminrow {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* BUTTONS */
button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    background: #1f3c88;
    color: white;
}

.btn-success {
    background: #2e7d32;
    color: white;
}

.btn-light {
    background: #e0e0e0;
}

.danger {
    background: #d32f2f;
    color: white;
}

/* LIST */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .list-header input {
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

.notice-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-left: 4px solid #c49a2c;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 8px;
}

.notice-icon {
    font-size: 20px;
    color: #1f3c88;
}

.notice-content h4 {
    margin: 0;
}

.notice-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
}

.tags span {
    font-size: 11px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.notice-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}