/* =========================================
   RESET DASAR
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   BODY
========================================= */

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #f1f5f9;

    color:
        #1e293b;
}


/* =========================================
   LOGIN
========================================= */

.login-container {

    min-height:
        100vh;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    padding:
        20px;

}


.login-box {

    width:
        100%;

    max-width:
        400px;

    background:
        #ffffff;

    padding:
        35px;

    border-radius:
        15px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.12);

}


.login-box h2 {

    text-align:
        center;

    margin-bottom:
        10px;

    color:
        #1e3a8a;

}


.login-box p {

    text-align:
        center;

    color:
        #64748b;

    margin-bottom:
        25px;

}


.login-box label {

    display:
        block;

    margin-bottom:
        8px;

    font-weight:
        600;

}


.login-box input {

    width:
        100%;

    padding:
        12px;

    border:
        1px solid #cbd5e1;

    border-radius:
        8px;

    margin-bottom:
        18px;

    outline:
        none;

}


.login-box input:focus {

    border-color:
        #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);

}


.login-box button {

    width:
        100%;

    padding:
        12px;

    border:
        none;

    border-radius:
        8px;

    background:
        #2563eb;

    color:
        white;

    font-size:
        15px;

    font-weight:
        bold;

    cursor:
        pointer;

}


.login-box button:hover {

    background:
        #1d4ed8;

}


.error {

    background:
        #fee2e2;

    color:
        #b91c1c;

    padding:
        10px;

    border-radius:
        8px;

    margin-bottom:
        15px;

}


/* =========================================
   LAYOUT DASHBOARD
========================================= */

.dashboard-container {

    display:
        flex;

    min-height:
        100vh;

}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {

    width:
        250px;

    min-width:
        250px;

    min-height:
        100vh;

    background:
        linear-gradient(
            180deg,
            #0f172a,
            #1e293b
        );

    color:
        white;

    padding:
        25px 15px;

    position:
        relative;

}


/* =========================================
   JUDUL SIDEBAR
========================================= */

.sidebar-title {

    text-align:
        center;

    padding:
        15px 10px;

}


.sidebar-title h2 {

    font-size:
        22px;

    font-weight:
        bold;

    letter-spacing:
        2px;

}


.sidebar-title h3 {

    margin-top:
        5px;

    font-size:
        14px;

    font-weight:
        normal;

    letter-spacing:
        3px;

    color:
        #60a5fa;

}


/* =========================================
   GARIS SIDEBAR
========================================= */

.sidebar hr {

    border:
        none;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);

    margin:
        20px 0;

}


/* =========================================
   INFORMASI USER
========================================= */

.user-info {

    text-align:
        center;

    padding:
        10px;

}


.user-info p {

    font-size:
        12px;

    color:
        #94a3b8;

    margin-bottom:
        8px;

}


.user-info strong {

    display:
        block;

    font-size:
        15px;

    color:
        #ffffff;

}


.user-info small {

    display:
        inline-block;

    margin-top:
        10px;

    padding:
        5px 12px;

    background:
        rgba(59, 130, 246, 0.2);

    border:
        1px solid
        rgba(96, 165, 250, 0.25);

    border-radius:
        20px;

    color:
        #bfdbfe;

}


/* =========================================
   MENU
========================================= */

.menu {

    list-style:
        none;

}


.menu li {

    margin-bottom:
        5px;

}


.menu a {

    display:
        block;

    padding:
        12px 15px;

    border-radius:
        8px;

    text-decoration:
        none;

    color:
        #cbd5e1;

    font-size:
        14px;

    transition:
        all 0.2s ease;

}


.menu a:hover {

    background:
        rgba(59, 130, 246, 0.18);

    color:
        white;

    transform:
        translateX(3px);

}


/* =========================================
   MENU TITLE
========================================= */

.menu-title {

    margin-top:
        25px;

    margin-bottom:
        10px;

    padding-left:
        12px;

    font-size:
        10px;

    font-weight:
        bold;

    letter-spacing:
        1.5px;

    color:
        #64748b;

}


/* =========================================
   LOGOUT
========================================= */

.menu .logout {

    margin-top:
        25px;

    text-align:
        center;

    background:
        #dc2626;

    color:
        white;

}


.menu .logout:hover {

    background:
        #b91c1c;

    transform:
        none;

}


/* =========================================
   MAIN CONTENT
========================================= */

.main-content {

    flex:
        1;

    min-width:
        0;

    padding:
        35px;

    background:
        #f1f5f9;

}


/* =========================================
   PAGE HEADER
========================================= */

.page-header {

    margin-bottom:
        30px;

}


.page-header h1 {

    font-size:
        30px;

    color:
        #0f172a;

    margin-bottom:
        8px;

}


.page-header p {

    color:
        #64748b;

    font-size:
        15px;

}


/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-cards {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap:
        20px;

    margin-bottom:
        30px;

}


/* =========================================
   DASHBOARD CARD
========================================= */

.dashboard-card {

    position:
        relative;

    overflow:
        hidden;

    background:
        #ffffff;

    border-radius:
        16px;

    padding:
        25px;

    border:
        1px solid #e2e8f0;

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.06);

    transition:
        all 0.25s ease;

}


.dashboard-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 15px 30px
        rgba(15, 23, 42, 0.12);

}


/* GARIS WARNA DI ATAS CARD */

.dashboard-card::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        5px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #60a5fa
        );

}


/* WARNA CARD BERBEDA */

.dashboard-card:nth-child(2)::before {

    background:
        linear-gradient(
            90deg,
            #059669,
            #34d399
        );

}


.dashboard-card:nth-child(3)::before {

    background:
        linear-gradient(
            90deg,
            #d97706,
            #fbbf24
        );

}


.dashboard-card:nth-child(4)::before {

    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #a78bfa
        );

}


/* =========================================
   CARD TITLE
========================================= */

.card-title {

    font-size:
        14px;

    font-weight:
        600;

    color:
        #64748b;

    margin-bottom:
        12px;

}


/* =========================================
   CARD NUMBER
========================================= */

.card-number {

    font-size:
        38px;

    font-weight:
        bold;

    color:
        #0f172a;

    margin-bottom:
        15px;

}


/* =========================================
   CARD LINK
========================================= */

.card-link {

    display:
        inline-block;

    text-decoration:
        none;

    color:
        #2563eb;

    font-size:
        14px;

    font-weight:
        bold;

}


.card-link:hover {

    color:
        #1d4ed8;

    text-decoration:
        underline;

}


/* =========================================
   DASHBOARD INFO
========================================= */

.dashboard-info {

    background:
        #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius:
        16px;

    padding:
        28px;

    margin-bottom:
        25px;

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.05);

}


.dashboard-info h2 {

    font-size:
        22px;

    color:
        #0f172a;

    margin-bottom:
        8px;

}


.dashboard-info > p {

    color:
        #64748b;

    margin-bottom:
        20px;

    font-size:
        14px;

}


/* =========================================
   INFORMASI TERBARU
========================================= */

.latest-data {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap:
        20px;

}


/* =========================================
   ITEM INFORMASI TERBARU
========================================= */

.latest-item {

    background:
        #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius:
        12px;

    padding:
        20px;

    transition:
        all 0.2s ease;

}


.latest-item:hover {

    background:
        #ffffff;

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 20px
        rgba(15, 23, 42, 0.08);

}


.latest-item h3 {

    color:
        #1e3a8a;

    font-size:
        17px;

    margin-bottom:
        15px;

}


.latest-item p {

    color:
        #475569;

    font-size:
        14px;

    margin-bottom:
        8px;

}


.latest-item strong {

    color:
        #0f172a;

    font-size:
        15px;

}


/* =========================================
   LINK INFORMASI TERBARU
========================================= */

.latest-item a {

    display:
        inline-block;

    margin-top:
        12px;

    color:
        #2563eb;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        bold;

}


.latest-item a:hover {

    text-decoration:
        underline;

}


/* =========================================
   MENU CEPAT
========================================= */

.quick-menu {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px;

}


/* =========================================
   BUTTON
========================================= */

.btn {

    display:
        inline-block;

    padding:
        11px 18px;

    border:
        none;

    border-radius:
        8px;

    text-decoration:
        none;

    cursor:
        pointer;

    font-size:
        14px;

    font-weight:
        600;

    transition:
        all 0.2s ease;

}


.btn-primary {

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color:
        white;

    box-shadow:
        0 4px 10px
        rgba(37, 99, 235, 0.2);

}


.btn-primary:hover {

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );

    transform:
        translateY(-2px);

}


/* =========================================
   BUTTON EDIT
========================================= */

.btn-edit {

    background:
        #f59e0b;

    color:
        white;

    padding:
        8px 12px;

    font-size:
        13px;

}


.btn-edit:hover {

    background:
        #d97706;

}


/* =========================================
   BUTTON DELETE
========================================= */

.btn-delete {

    background:
        #dc2626;

    color:
        white;

    padding:
        8px 12px;

    font-size:
        13px;

}


.btn-delete:hover {

    background:
        #b91c1c;

}


/* =========================================
   BUTTON BACK
========================================= */

.btn-back {

    background:
        #64748b;

    color:
        white;

}


.btn-back:hover {

    background:
        #475569;

}


/* =========================================
   TABLE
========================================= */

.table-container {

    background:
        white;

    border:
        1px solid #e2e8f0;

    border-radius:
        12px;

    padding:
        20px;

    overflow-x:
        auto;

    box-shadow:
        0 5px 15px
        rgba(15, 23, 42, 0.05);

}


table {

    width:
        100%;

    border-collapse:
        collapse;

}


table th,
table td {

    padding:
        14px;

    text-align:
        left;

    border-bottom:
        1px solid #e2e8f0;

}


table th {

    background:
        #f8fafc;

    color:
        #334155;

    font-size:
        13px;

}


table tr:hover {

    background:
        #f8fafc;

}


/* =========================================
   FORM
========================================= */

.form-container {

    background:
        white;

    max-width:
        700px;

    padding:
        30px;

    border-radius:
        15px;

    border:
        1px solid #e2e8f0;

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.05);

}


.form-group {

    margin-bottom:
        20px;

}


.form-group label {

    display:
        block;

    margin-bottom:
        8px;

    font-weight:
        600;

    color:
        #334155;

}


.form-group input,
.form-group select,
.form-group textarea {

    width:
        100%;

    padding:
        11px 12px;

    border:
        1px solid #cbd5e1;

    border-radius:
        8px;

    outline:
        none;

    font-size:
        14px;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color:
        #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);

}


/* =========================================
   ALERT SUCCESS
========================================= */

.alert-success {

    background:
        #dcfce7;

    color:
        #166534;

    padding:
        12px;

    border-radius:
        8px;

    margin-bottom:
        20px;

}


/* =========================================
   ALERT ERROR
========================================= */

.alert-error {

    background:
        #fee2e2;

    color:
        #991b1b;

    padding:
        12px;

    border-radius:
        8px;

    margin-bottom:
        20px;

}


/* =========================================
   STATUS
========================================= */

.status-pending {

    display:
        inline-block;

    background:
        #fef3c7;

    color:
        #92400e;

    padding:
        6px 10px;

    border-radius:
        20px;

    font-size:
        12px;

}


.status-approved {

    display:
        inline-block;

    background:
        #dcfce7;

    color:
        #166534;

    padding:
        6px 10px;

    border-radius:
        20px;

    font-size:
        12px;

}


.status-accounting {

    display:
        inline-block;

    background:
        #dbeafe;

    color:
        #1e40af;

    padding:
        6px 10px;

    border-radius:
        20px;

    font-size:
        12px;

}


/* =========================================
   SEARCH
========================================= */

.search-container {

    margin-bottom:
        20px;

}


.search-form {

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        10px;

}


.search-form input {

    width:
        350px;

    max-width:
        100%;

    padding:
        10px 12px;

    border:
        1px solid #cbd5e1;

    border-radius:
        8px;

}


/* =========================================
   PAGINATION
========================================= */

.pagination-container {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        15px;

    margin-top:
        25px;

}


.pagination {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        5px;

}


.pagination-btn {

    display:
        inline-block;

    padding:
        8px 12px;

    border:
        1px solid #cbd5e1;

    border-radius:
        6px;

    text-decoration:
        none;

    color:
        #334155;

}


.pagination-btn:hover {

    background:
        #f1f5f9;

}


.pagination-btn.active {

    background:
        #2563eb;

    border-color:
        #2563eb;

    color:
        white;

}


/* =========================================
   RESPONSIVE
========================================= */

@media screen and (max-width: 900px) {


    .sidebar {

        width:
            220px;

        min-width:
            220px;

    }


    .main-content {

        padding:
            25px;

    }


}


@media screen and (max-width: 768px) {


    .dashboard-container {

        flex-direction:
            column;

    }


    .sidebar {

        width:
            100%;

        min-width:
            100%;

        min-height:
            auto;

    }


    .main-content {

        padding:
            20px;

    }


    .dashboard-cards {

        grid-template-columns:
            1fr;

    }


    .latest-data {

        grid-template-columns:
            1fr;

    }


    .page-header h1 {

        font-size:
            25px;

    }


}


@media screen and (max-width: 480px) {


    .main-content {

        padding:
            15px;

    }


    .dashboard-info {

        padding:
            20px;

    }


    .dashboard-card {

        padding:
            20px;

    }


    .quick-menu {

        flex-direction:
            column;

    }


    .quick-menu .btn {

        width:
            100%;

        text-align:
            center;

    }


}

/* =========================================
   DASHBOARD CARD
========================================= */

.dashboard-cards {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 20px;

    margin-bottom: 30px;

}


.dashboard-card {

    background: #ffffff;

    padding: 25px;

    border-radius: 14px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.08);

    border-top:
        5px solid #2563eb;

    transition: 0.3s;

}


.dashboard-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.12);

}


.card-title {

    font-size: 14px;

    color: #64748b;

    margin-bottom: 12px;

    font-weight: 600;

}


.card-number {

    font-size: 34px;

    font-weight: bold;

    color: #1e293b;

    margin-bottom: 15px;

}


.card-link {

    text-decoration: none;

    color: #2563eb;

    font-size: 14px;

    font-weight: bold;

}


.card-link:hover {

    text-decoration: underline;

}


/* =========================================
   WARNA CARD
========================================= */

.card-blue {

    border-top-color: #3b82f6;

}


.card-green {

    border-top-color: #10b981;

}


.card-orange {

    border-top-color: #f59e0b;

}


.card-purple {

    border-top-color: #8b5cf6;

}

/* =========================================
   DASHBOARD INFORMATION
========================================= */

.dashboard-info {

    background: #ffffff;

    padding: 25px;

    border-radius: 14px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);

    margin-bottom: 25px;

}


.dashboard-info h2 {

    color: #1e293b;

    margin-bottom: 8px;

}


.dashboard-info > p {

    color: #64748b;

    margin-bottom: 20px;

}


/* =========================================
   DATA TERBARU
========================================= */

.latest-data {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 20px;

    margin-top: 20px;

}


.latest-item {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    padding: 20px;

    transition: 0.3s;

}


.latest-item:hover {

    background: #ffffff;

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.08);

}


.latest-item h3 {

    color: #1e3a5f;

    margin-bottom: 15px;

    font-size: 17px;

}


.latest-item p {

    color: #475569;

    line-height: 1.6;

    margin-bottom: 10px;

}


.latest-item a {

    display: inline-block;

    margin-top: 10px;

    color: #2563eb;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

}


.latest-item a:hover {

    text-decoration: underline;

}


/* =========================================
   MENU CEPAT
========================================= */

.quick-menu {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


.quick-menu .btn {

    padding: 11px 18px;

    border-radius: 8px;

}


/* =========================================
   RESPONSIVE DASHBOARD
========================================= */

@media screen and (max-width: 768px) {


    .dashboard-cards {

        grid-template-columns: 1fr;

    }


    .latest-data {

        grid-template-columns: 1fr;

    }


}

/* =========================================
   STATUS BADGE DASHBOARD
========================================= */

.status-badge {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

}


/* PENDING */

.status-pending {

    background-color: #fff3cd;

    color: #856404;

}


/* APPROVED */

.status-approved {

    background-color: #d1fae5;

    color: #065f46;

}


/* ACCOUNTING */

.status-accounting {

    background-color: #ede9fe;

    color: #5b21b6;

}


/* =========================================
   DASHBOARD ACTION
========================================= */

.dashboard-action {

    margin-top: 20px;

}


/* =========================================
   RESPONSIVE TABLE DASHBOARD
========================================= */

.table-container {

    width: 100%;

    overflow-x: auto;

}

/* =========================================
   STATUS PEKERJAAN
========================================= */

.card-description {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.85;
}

.badge-shift {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background-color: #eef2ff;
    color: #4338ca;
}

.my-data-label {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
}

.action-column {
    min-width: 180px;
}

.no-action {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.table-container table td {
    vertical-align: middle;
}