/*
Theme Name: Berkas-Propertiku
Theme URI: https://propertiku.id/
Author: Propertiku
Author URI: https://propertiku.id/
Description: Sistem manajemen dokumen dan generator Surat Jalan modern.
Version: 1.0.0
Text Domain: berkas-propertiku
*/


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f5f7fb;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================
   APP
========================================= */

.berkas-app {
    min-height: 100vh;
    display: flex;
}


/* =========================================
   SIDEBAR
========================================= */

.berkas-sidebar {
    width: 260px;
    min-height: 100vh;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    padding: 25px 18px;

    background: #111827;
    color: #ffffff;

    z-index: 100;
}


.berkas-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 9px 28px;
}


.berkas-brand-logo {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}


.berkas-brand-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}


.berkas-brand-subtitle {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;
}


.berkas-menu-label {
    margin: 18px 9px 8px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
}


.berkas-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 42px;

    padding: 0 12px;

    margin-bottom: 3px;

    border-radius: 9px;

    color: #cbd5e1;

    font-size: 13px;
    font-weight: 550;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.berkas-menu-item:hover {
    background: #1e293b;
    color: #ffffff;
}


.berkas-menu-item.active {
    background: #2563eb;
    color: #ffffff;
}


.berkas-menu-icon {
    width: 20px;

    text-align: center;

    font-size: 14px;
}


.berkas-sidebar-footer {
    margin-top: auto;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px 9px 3px;

    border-top: 1px solid #1f2937;
}


.berkas-user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2563eb;

    font-size: 12px;
    font-weight: 800;
}


.berkas-user-info {
    display: flex;
    flex-direction: column;
}


.berkas-user-info strong {
    font-size: 12px;
}


.berkas-user-info small {
    margin-top: 2px;

    color: #64748b;

    font-size: 10px;
}


/* =========================================
   MAIN
========================================= */

.berkas-main {
    width: calc(100% - 260px);

    margin-left: 260px;

    min-height: 100vh;
}


/* =========================================
   HEADER
========================================= */

.berkas-header {
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}


.berkas-page-title {
    font-size: 18px;
    font-weight: 800;
}


.berkas-page-subtitle {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 11px;
}


.berkas-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.berkas-header-button {
    padding: 9px 13px;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #ffffff;
    color: #475569;

    font-size: 11px;

    cursor: pointer;
}


.berkas-profile-button {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #2563eb;
    color: #ffffff;

    font-weight: 800;

    cursor: pointer;
}


/* =========================================
   CONTENT
========================================= */

.berkas-content {
    padding: 30px;
}


.berkas-dashboard {
    max-width: 1500px;
    margin: 0 auto;
}


/* =========================================
   WELCOME
========================================= */

.berkas-welcome {
    min-height: 190px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 35px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e3a8a 100%
        );

    color: #ffffff;
}


.berkas-welcome-label {
    margin-bottom: 8px;

    color: #93c5fd;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.berkas-welcome h1 {
    margin: 0;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}


.berkas-welcome p {
    max-width: 600px;

    margin: 11px 0 0;

    color: #cbd5e1;

    font-size: 13px;
    line-height: 1.7;
}


.berkas-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border-radius: 9px;

    background: #ffffff;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}


.berkas-primary-button:hover {
    background: #eff6ff;
}


/* =========================================
   STATS
========================================= */

.berkas-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-top: 20px;
}


.berkas-stat-card {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 13px;
}


.berkas-stat-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
}


.berkas-stat-content {
    display: flex;
    flex-direction: column;
}


.berkas-stat-content span {
    color: #64748b;

    font-size: 10px;
}


.berkas-stat-content strong {
    margin-top: 2px;

    font-size: 22px;
    line-height: 1.1;
}


.berkas-stat-content small {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;
}


/* =========================================
   SECTION
========================================= */

.berkas-section {
    margin-top: 30px;
}


.berkas-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;
}


.berkas-section-header h2 {
    margin: 0;

    font-size: 16px;
    font-weight: 800;
}


.berkas-section-header p {
    margin: 4px 0 0;

    color: #94a3b8;

    font-size: 10px;
}


.berkas-text-button {
    color: #2563eb;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   DOCUMENT CARDS
========================================= */

.berkas-document-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.berkas-document-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 13px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.berkas-document-card:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.07);
}


.berkas-document-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;
}


.berkas-document-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}


.berkas-document-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}


.berkas-document-icon.purple {
    background: #faf5ff;
    color: #9333ea;
}


.berkas-document-card h3 {
    margin: 0;

    font-size: 13px;
    font-weight: 800;
}


.berkas-document-card p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.6;
}


.berkas-card-arrow {
    position: absolute;

    right: 18px;
    bottom: 16px;

    color: #94a3b8;

    font-size: 16px;
}


/* =========================================
   TABLE
========================================= */

.berkas-table-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 13px;
}


.berkas-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 11px;
}


.berkas-table th {
    padding: 13px 15px;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    color: #64748b;

    text-align: left;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}


.berkas-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #f1f5f9;

    color: #475569;
}


.berkas-table tr:last-child td {
    border-bottom: none;
}


.berkas-table td strong {
    color: #172033;

    font-size: 10px;
}


.berkas-status {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;
}


.berkas-status.completed {
    background: #dcfce7;
    color: #15803d;
}


.berkas-status.draft {
    background: #fef3c7;
    color: #b45309;
}


/* =========================================
   FOOTER
========================================= */

.berkas-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 35px;
    padding: 20px 30px;

    border-top: 1px solid #e5e7eb;

    color: #94a3b8;

    font-size: 9px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .berkas-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .berkas-document-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 800px) {

    .berkas-sidebar {
        width: 72px;

        padding:
            20px 10px;
    }

    .berkas-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .berkas-brand > div:last-child,
    .berkas-menu-label,
    .berkas-menu-item span:last-child,
    .berkas-user-info {
        display: none;
    }

    .berkas-menu-item {
        justify-content: center;
        padding: 0;
    }

    .berkas-sidebar-footer {
        justify-content: center;
    }

    .berkas-main {
        width: calc(100% - 72px);
        margin-left: 72px;
    }

    .berkas-content {
        padding: 20px;
    }

    .berkas-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

}


@media (max-width: 600px) {

    .berkas-header {
        padding: 0 15px;
    }

    .berkas-page-subtitle {
        display: none;
    }

    .berkas-content {
        padding: 15px;
    }

    .berkas-stat-grid {
        grid-template-columns: 1fr;
    }

    .berkas-welcome {
        padding: 25px;
    }

    .berkas-welcome h1 {
        font-size: 23px;
    }

    .berkas-table-card {
        overflow-x: auto;
    }

    .berkas-table {
        min-width: 650px;
    }

}