﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: .8rem !important; /*.9rem;*/
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    /*background: conic-gradient(at 78% 3%, #0000 75%, #e5f3ff 0), conic-gradient(at 78% 3%, #0000 75%, #e5f3ff 0) 9px 9px, conic-gradient(at 78% 3%, #0000 75%, #e5f3ff 0) 18px 18px, conic-gradient(at 78% 3%, #0000 75%, #e5f3ff 0) 27px 27px, conic-gradient(at 3% 78%, #0000 75%, #e5f3ff 0) 0 27px, conic-gradient(at 3% 78%, #0000 75%, #e5f3ff 0) 9px 0, conic-gradient(at 3% 78%, #0000 75%, #e5f3ff 0) 18px 9px, conic-gradient(at 3% 78%, #0000 75%, #e5f3ff 0) 27px 18px #ffffff;*/
    background-size: 36px 36px;
    /*padding: 0px 0px 5px 0px;*/
}

.main-container {
    display: flex;
    width: 94%;
    height: auto;
    min-height: 90vh;
    /*box-shadow: 5px 5px 10px rgb(150 150 150);
    background: transparent;
    border-radius: 10px;*/
    overflow: visible;
    flex-wrap: nowrap;
    margin-left: 73px;
}

.guest-container {
    width: 100%;
    min-height: 100vh;
    /*display: flex;
    height: auto;
    box-shadow: 5px 5px 10px rgb(150 150 150);
    background: transparent;
    border-radius: 10px;
    overflow: visible;
    flex-wrap: nowrap;*/
}

/*.sidebar {
    background-color: #0f335e;
    color: white;
    padding: 10px 15px;
    box-sizing: border-box;
    min-height: 100vh;
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: 70px;
}*/

.sidebar {
    color: white;
    padding: 10px 15px;
    box-sizing: border-box;
    position: fixed;
    top: 57.6px;
    bottom: 0;
    left: 0;
    width: 70px;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    /*background: rgba(15, 51, 94, 0.6);*/ /* #0f335e + transparansi */
    /*backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.25);*/
    /* From https://css.glass */
    background: rgb(15 51 94 / 80%);
    border-radius: 0px 0px 16px 0px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(15, 51, 94, 0.66);
    text-shadow: 0 1px 2px rgb(0 0 0);
}

    .sidebar:hover {
        background: rgba(15, 51, 94, 1);
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 10px;
        cursor: pointer;
        transition: 0.3s;
    }

        .sidebar li:hover {
            color: #ffc107;
        }

.website-container {
    flex: 1;
    /*display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: visible;
    align-content: flex-start;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 24px;
    padding: 10px 20px;
}

.website {
    text-align: center;
    width: 100px
}

.circle-default {
    position: relative;
    width: 17vw;
    height: 17vw;
    max-width: 96px;
    max-height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #337ab7, #1a4e8a);
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(0, 0, 0, 0.2), inset 0 -5px 15px rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

    .circle-default img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        border-radius: 50%;
        display: block;
    }


.circle {
    position: relative;
    width: 17vw;
    height: 17vw;
    max-width: 90px;
    max-height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #337ab7, #1a4e8a);
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(0, 0, 0, 0.2), inset 0 -5px 15px rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

    .circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: all 650ms;
    }

    .circle:hover:before {
        left: 100%;
    }

    .circle::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        filter: blur(2px);
    }

.circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 40%;
    border-radius: 50%;
    display: block;
}

.website:hover .circle {
    background: radial-gradient(circle at top left, #ffe400, #fb6c00);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px white, 0 0 0 8px orange, inset 0 -5px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(255, 165, 0, 0.5);
}

.circle-favourite {
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(13, 110, 253, 1), inset 0 -5px 15px rgba(13, 110, 253, 0.4);
}

.label {
    margin-top: 10px;
    font-size: .8rem;
    color: #333;
    font-weight: bold;
}

.gainsboro {
    background: radial-gradient(circle at top left, #ffffff, #d9d9d9);
}

.fb {
    background: radial-gradient(circle at top left, #3b5998, #2d4373);
}

.tw {
    background: radial-gradient(circle at top left, #1da1f2, #0d8ddb);
}

.insta {
    background: radial-gradient(circle at top left, #405de6, #833ab4);
}

.yt {
    background: radial-gradient(circle at top left, #ff0000, #c80000);
}

.linkedin {
    background: radial-gradient(circle at top left, #0077b5, #005983);
}

i {
    /*font-size: 2rem;*/
    padding: 10px 0px;
    display: contents !important;
}

.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
    margin-bottom: 5px !important;
}

.alert {
    padding: .5rem .5rem !important;
}

.alert-dismissible .btn-close {
    padding: .7rem 1rem !important;
}

.card {
    box-shadow: 5px 5px 10px grey !important;
}

.logo-ipeka {
    max-height: 46px;
    width: auto;
}

/*header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #0f335e;
    padding: 2px 5px;
}*/

header {
    position: sticky;
    top: 0;
    z-index: 1050;
    /* warna dasar tetap #0f335e */
    /*background: rgba(15, 51, 94, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    padding: 5px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgb(0 0 0);
    /* From https://css.glass */
    background: rgb(15 51 94 / 80%);
    border-radius: 0px 0px 16px 0px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(15, 51, 94, 0.66);
}

    header:hover {
        background: rgba(15, 51, 94, 1);
    }

.title-form h2 {
    font-size: revert;
    font-weight: bold;
    letter-spacing: 0;
    padding-bottom: 5px;
    position: relative;
    font-family: serif;
}

    .title-form h2:before {
        content: "";
        position: absolute;
        /*left: 0;*/
        bottom: 0;
        height: 5px;
        width: 55px;
        background-color: #ffc105;
    }

    .title-form h2:after {
        content: "";
        position: absolute;
        left: 12px;
        bottom: 2px;
        height: 1px;
        width: 95%;
        max-width: 255px;
        background-color: #ffc105;
    }

.chart {
    width: 60%;
    height: 300px;
}

#userGreeting {
    white-space: nowrap; /* teks di satu baris */
    overflow: hidden; /* sembunyikan overflow */
    text-overflow: ellipsis; /* tambahkan ... jika terpotong */
    max-width: 100%;
}

.equal-height {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #faeed6 !important;
    cursor: not-allowed;
    box-shadow: 5px 0px 10px grey !important;
}

.nav-tabs .nav-item {
    cursor: pointer;
}

.image-border {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

    .image-border img {
        width: 112px;
        height: 112px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

.card-words {
    margin-bottom: 15vh;
}

/*Resolusi Mobile*/
@media (max-width: 767.98px) {
    header {
        border-radius: unset;
    }

    .main-container {
        flex-direction: column;
        min-height: 85vh; /* pastikan mengisi seluruh tinggi layar */
        width: 100%; /* pastikan mengisi seluruh lebar layar */
        margin-left: unset;
    }

    .website-container {
        padding: unset;
    }

    .sidebar {
        color: white;
        padding: 10px 0px 5px 0px;
        bottom: 0;
        top: unset;
        left: 0;
        right: 0;
        width: 100vw;
        height: auto;
        min-height: unset;
        order: 2;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        border-radius: unset;
    }

        .sidebar:hover {
            background: rgba(15, 51, 94, 1);
        }

        .sidebar ul {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .sidebar li {
            margin: 0 10px;
            list-style: none;
        }

    /* Tambahkan padding-bottom ke konten utama agar tidak tertutup footer */
    .w-100.py-2 {
        padding-bottom: 26px !important;
    }

    .mobile-mt-2 {
        margin-top: 0.5rem !important; /* mt-2 = 0.5rem */
    }

    .chart {
        width: 100%;
    }

    .card-words {
        /*height: 45vh !important;*/
        overflow-y: auto;
    }

    #userGreeting {
        /*min-width: auto;*/ /* hapus min-width di mobile */
        /*max-width: 120px;*/ /* supaya tidak terlalu lebar */
        max-width: 250px;
        font-size: 0.8rem; /* bisa kecilkan font agar muat */
    }

    .circle-default {
        position: relative;
        width: unset;
        height: 50vw;
        max-width: 176px;
        max-height: 176px;
    }
}

/**START CALENDAR*/
#calendar {
    width: 99%;
    margin: 0px 0px;
}

.fc {
    font-size: 0.8em;
}

.fc-day-sun .fc-daygrid-day-number {
    color: red;
    font-weight: bold; /* opsional, supaya lebih tegas */
}

.fc .fc-daygrid-day-number {
    padding: 0px 4px !important;
}

.fc .fc-daygrid-day-events {
    margin-top: -2px !important;
}
/**END CALENDAR*/

/*START Custom CSS Bootstrap Blazorise*/
.btn-close {
    font-size: x-large;
    margin-right: .1rem !important;
}

.b-layout.b-layout-root {
    height: 92vh !important;
}

.b-bar-vertical-inline.b-bar-dark, .b-bar-vertical-popout.b-bar-dark, .b-bar-vertical-small.b-bar-dark {
    background: #214699 !important;
    color: white !important;
}

.b-bar-vertical-inline .b-bar-brand, .b-bar-vertical-popout .b-bar-brand, .b-bar-vertical-small .b-bar-brand {
    height: 46px !important;
    min-height: 46px !important;
}

.b-bar-vertical-inline.b-bar-dark .b-bar-dropdown-menu, .b-bar-vertical-popout.b-bar-dark .b-bar-dropdown-menu, .b-bar-vertical-small.b-bar-dark .b-bar-dropdown-menu {
    background: unset !important;
}

.b-bar-vertical-inline .b-bar-item .b-bar-icon, .b-bar-vertical-popout .b-bar-item .b-bar-icon, .b-bar-vertical-small .b-bar-item .b-bar-icon {
    font-size: 1rem !important;
}

.b-bar-vertical-inline .b-bar-toggler-inline, .b-bar-vertical-popout .b-bar-toggler-inline, .b-bar-vertical-small .b-bar-toggler-inline {
    height: 46px !important;
    padding: 8px;
}

.b-bar-vertical-inline .b-bar-link, .b-bar-vertical-popout .b-bar-link, .b-bar-vertical-small .b-bar-link {
    padding: .1rem .5rem !important;
}

.b-bar-vertical-inline .b-bar-item, .b-bar-vertical-popout .b-bar-item, .b-bar-vertical-small .b-bar-item {
    min-height: 32px !important;
}

.b-bar-vertical-inline:not([data-collapse]) .b-bar-dropdown .b-bar-dropdown-menu-container .b-bar-dropdown-menu .b-bar-dropdown-item {
    padding: .1rem .5rem .1rem 3rem !important
}

.b-bar-vertical-inline .b-bar-dropdown .b-bar-dropdown-menu, .b-bar-vertical-popout .b-bar-dropdown .b-bar-dropdown-menu, .b-bar-vertical-small .b-bar-dropdown .b-bar-dropdown-menu {
    padding: 2px 0 !important;
}

.b-layout > .b-layout-header .b-bar-horizontal[data-collapse=hide][data-broken=true] {
    height: 46px !important;
}

.b-layout > .b-layout-header .b-bar-horizontal[data-broken=false] {
    height: 46px !important;
}

.b-bar-vertical-inline.b-bar-dark .b-bar-dropdown-menu .b-bar-dropdown-item.active, .b-bar-vertical-popout.b-bar-dark .b-bar-dropdown-menu .b-bar-dropdown-item.active, .b-bar-vertical-small.b-bar-dark .b-bar-dropdown-menu .b-bar-dropdown-item.active {
    background: #c09000 !important;
}

/* PILIH SALAH SATU ~ CSS untuk kolom pertama (jika ada CommandColumn Blazorise) */
/*table th:first-child, table td:first-child {
    width: 80px !important;
    text-align: center !important;
}*/

/* PILIH SALAH SATU ~ CSS untuk kolom terakhir (jika ada CommandColumn Blazorise) */
table th:last-child, table td:last-child {
    width: 80px !important;
    text-align: center !important;
}

th[scope="col"] {
    background-color: #0f335e !important;
    color: white !important;
    text-align: center !important;
}

th button {
    color: white !important; /* Warna teks saat normal (misalnya oranye) */
}

.page-link {
    padding: .1rem .5rem !important;
    font-size: unset !important;
}

.table {
    margin-bottom: .2rem;
}

    .table > :not(caption) > * > th {
        padding: 0px .2rem .1rem .2rem !important
    }

        .table > :not(caption) > * > th > input {
            padding: unset !important;
            font-size: unset !important;
            text-align: center !important;
        }

    .table > :not(caption) > * > td {
        padding: .1rem .2rem 0px .2rem !important;
    }

    .table button.btn {
        font-size: .7rem;
        color: white !important;
    }

    /* Style for the btn-success button and link within a table */
    .table button.btn-success,
    .table a.btn-success {
        background-color: #21a065 !important;
        border-color: #198754 !important;
    }

        /* Style for the hover effect on the btn-success button and link */
        .table button.btn-success:hover,
        .table a.btn-success:hover {
            background-color: #157347 !important;
            border-color: #146c43 !important;
        }

    .table button.btn-warning,
    .table a.btn-warning {
        background-color: #ffc107 !important;
        border-color: #ffc107 !important;
    }

        /* Style for the hover effect on the btn-warning button and link */
        .table button.btn-warning:hover,
        .table a.btn-warning:hover {
            background-color: #f9aa4b !important;
            border-color: #ffc720 !important;
        }

    .table button.btn-danger,
    .table a.btn-danger {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
    }

        /* Style for the hover effect on the btn-danger button and link */
        .table button.btn-danger:hover,
        .table a.btn-danger:hover {
            background-color: #bb2d3b !important;
            border-color: #b02a37 !important;
        }

    .table .form-group {
        margin-bottom: 1rem !important;
    }

    .table .form-check {
        display: inline-flex !important;
        margin-bottom: unset !important;
    }

/*.table input.form-control {
        padding: .2rem .2rem !important;
        font-size: unset !important;
        text-align: center !important;
    }*/

.b-datagrid-drop-zone {
    padding: .5rem .5rem !important;
    border-color: #0f335e !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

/* Mengatur border vertikal pada DataGrid */
.dtgrid th, .dtgrid td {
    border-right: 1px solid #ccc !important; /* Menambahkan garis vertikal */
}

    /* Menghapus border kanan pada kolom terakhir */
    .dtgrid th:last-child, .dtgrid td:last-child {
        border-right: none !important;
    }

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: rgb(255 191 0 / 22%) !important;
}

.modal-header {
    padding: .5rem 1rem !important
}

.modal-body {
    padding: .5rem .5rem !important;
}

.modal-footer {
    padding: .1rem !important;
}

.btn {
    padding: 1px .3rem !important;
}

.btn-link {
    font-size: .8rem !important;
}

.btn-success, a.btn-success {
    color: #FFFFFF;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

    .btn-success:hover, a.btn-success:hover {
        color: #FFFFFF;
        background-color: #157347;
        border-color: #146c43;
    }

.btn-primary, a.btn-primary {
    color: #FFFFFF;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

    .btn-primary:hover, a.btn-primary:hover {
        color: #FFFFFF;
        background-color: #0b51b8 !important;
        border-color: blue !important;
    }

.btn-secondary, a.btn-secondary {
    color: #FFFFFF;
    background-color: #6c757d !important;
    border-color: #95a1ab !important;
}

    .btn-secondary:hover, a.btn-secondary:hover {
        color: #FFFFFF;
        background-color: #4f5256 !important;
        border-color: black !important;
    }

.form-select, .form-control {
    padding: .1rem .1rem .1rem .3rem !important;
    font-size: .8rem !important;
}

.form-select {
    background-position: right .35rem center !important;
    background-size: 12px 12px !important;
}

    .form-select.is-valid:not([multiple]):not([size]), .form-select.is-valid:not([multiple])[size="1"], .was-validated .form-select:valid:not([multiple]):not([size]), .was-validated .form-select:valid:not([multiple])[size="1"] {
        background-position: right .35rem center,center right 1.3rem !important;
        background-size: 12px 12px,calc(.75em + .375rem) calc(.75em + .375rem) !important;
    }

    .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"], .was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"] {
        background-position: right .35rem center,center right 1.3rem !important;
        background-size: 12px 12px,calc(.75em + .375rem) calc(.75em + .375rem) !important;
    }

.form-group {
    margin-bottom: .1rem !important;
}

.form-label {
    margin-bottom: .2rem !important;
}

.dropdown-menu {
    padding: .2rem .1rem !important;
}

.dropdown-item {
    padding: 1px .5rem !important;
}

.red-star::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.accordion-button {
    padding: .1rem .5rem !important;
}

.accordion-body {
    padding: .2rem 0px !important;
}

.custom-font-size {
    font-size: .8rem !important;
}

.submenu-parent {
    padding-left: 2.5rem !important;
    display: inline-flex;
}

.sub-submenu-parent {
    padding-left: 3.5rem !important;
    display: inline-flex;
}

.badge-close {
    padding-left: 10px !important;
}

.b-is-autocomplete.b-is-autocomplete-multipleselection {
    min-height: unset !important;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #faeed6 !important;
}

th select.form-select {
    padding: unset !important;
}

.form-label-required:after {
    font-weight: bold;
}
/*END Custom CSS Bootstrap Blazorise*/