* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f5f9fd;
    color: #0d477f
}

.app {
    min-height: 100vh;
    display: flex
}

aside {
    width: 254px;
    background: linear-gradient(#123b66, #0a3157);
    color: white;
    padding: 28px 11px
}

.brand {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    font-size: 17px;
    margin-bottom: 30px
}

nav {
    display: flex;
    flex-direction: column;
    gap: 7px
}

nav a {
    height: 52px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    padding: 0 21px;
    color: white;
    font-size: 16px;
    gap: 16px;
    text-decoration: none;
}

nav a.active {
    background: #0873e8;
    box-shadow: 0 5px 15px #0003
}

.main {
    flex: 1;
    min-width: 0
}

header {
    height: 96px;
    background: #fff;
    border-bottom: 1px solid #e4edf6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #164d7d;
    font-weight: 600
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3974b1;
    color: #fff;
    border: 3px solid #e7f0fa
}

main {
    padding: 28px 24px
}

.card {
    background: #fff;
    border: 1px solid #e1ecf6;
    border-radius: 12px;
    padding: 25px 22px 30px;
    box-shadow: 0 7px 25px #0d4b7c0b
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px
}

.heading h1 {
    margin: 0 0 7px;
    font-size: 29px;
    color: #0b4d92
}

.heading p {
    margin: 0;
    color: #7893b1;
    font-size: 14px
}

.primary {
    border: 0;
    border-radius: 8px;
    background: #0868d6;
    color: white;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 13px #0867d52b
}

.tools {
    display: grid;
    grid-template-columns: 1.1fr .72fr;
    gap: 13px;
    margin: 23px 0 27px
}

.search,
.tools select {
    height: 49px;
    border: 1px solid #cfe0f1;
    border-radius: 8px;
    background: #fff
}

.search {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 27px;
    color: #7195bb
}

.search input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 14px;
    margin-left: 10px
}

.tools select {
    padding: 0 17px;
    color: #174f86;
    font-size: 14px
}

.table {
    border: 1px solid #d8e6f3;
    border-radius: 8px;
    overflow: hidden
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed
}

th {
    height: 50px;
    background: #f8fbfe;
    text-align: left;
    color: #0c4e8f;
    font-size: 14px
}

td {
    height: 105px;
    border-top: 1px solid #e1ebf5;
    font-size: 14px
}

th:first-child,
td:first-child {
    width: 28%;
    padding-left: 15px
}

th:nth-child(2),
td:nth-child(2) {
    width: 28%
}

th:nth-child(3),
td:nth-child(3) {
    width: 16%
}

th:nth-child(4),
td:nth-child(4) {
    width: 16%
}

th:nth-child(5),
td:nth-child(5) {
    width: 12%;
    text-align: center
}

.date {
    display: flex;
    align-items: center;
    gap: 18px
}

.date img {
    width: 104px;
    height: 78px;
    object-fit: cover;
    border-radius: 7px
}

.date b {
    display: block
}

.date small {
    display: block;
    color: #7893b1;
    margin-top: 4px
}

.title {
    line-height: 1.5;
    padding-right: 25px
}

.badge,
.status {
    display: inline-flex;
    padding: 7px 17px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600
}

.projek {
    background: #ffe6a6;
    color: #9b6600
}

.lawatan {
    background: #cfe4ff;
    color: #0060b6
}

.program {
    background: #e3d5ff;
    color: #6230b7
}

.pengumuman {
    background: #e8d7ff;
    color: #6230b7
}

.status {
    background: #d4f7e2;
    color: #119259
}

.edit,
.del {
    border: 0;
    background: none;
    font-size: 23px;
    padding: 5px 10px
}

.edit {
    color: #0669db
}

.del {
    color: #f22
}

.empty {
    text-align: center;
    padding: 50px;
    color: #7893b1
}

.backdrop {
    position: fixed;
    inset: 0;
    background: #06284a66;
    display: grid;
    place-items: center;
    padding: 20px
}

.backdrop[hidden] {
    display: none
}

.modal {
    width: min(680px, 100%);
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 25px 70px #002a4b40
}

.modalhead {
    display: flex;
    justify-content: space-between;
    padding: 24px 27px 18px;
    border-bottom: 1px solid #e2edf6
}

.modalhead h2 {
    margin: 0;
    color: #0c4e92
}

.modalhead p {
    margin: 6px 0 0;
    color: #7893b1;
    font-size: 12px
}

.modalhead button {
    border: 0;
    background: none;
    font-size: 29px;
    color: #6686a4
}

.modal form {
    padding: 23px 27px
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.formgrid label {
    font-size: 12px;
    font-weight: 700;
    color: #21547f
}

.formgrid input,
.formgrid select,
.formgrid textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cfe0f1;
    border-radius: 7px;
    padding: 11px 12px;
    outline: 0
}

.full {
    grid-column: 1/-1
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.secondary {
    border: 1px solid #c8dceb;
    background: white;
    color: #315c83;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 700
}

@media(max-width:850px) {
    aside {
        width: 72px;
        padding: 20px 9px
    }

    .brand {
        padding: 0;
        justify-content: center
    }

    .brand b {
        display: none
    }

    nav a {
        justify-content: center;
        padding: 0;
        font-size: 0
    }

    .tools {
        grid-template-columns: 1fr
    }

    table {
        min-width: 850px
    }

    .table {
        overflow: auto
    }

    .heading {
        flex-direction: column
    }

    .primary {
        width: 100%
    }
}

@media(max-width:560px) {
    .formgrid {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: auto
    }
}