* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.fw-bold {
    font-weight: bold;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    /* strip full-bleed 100vw tanpa scrollbar horizontal */
    background: url('bg-mac.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.test-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgb(250, 37, 37), rgb(199, 2, 2), #ff6b6b);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 11px;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.7;
    }
}

.logout-button {
    color: white;
    text-decoration: none;
    padding: 0px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logout-button i {
    font-size: 17px;
}

.user-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info:hover {
    background: rgba(40, 40, 40, 0.9);
}

.user-info__jabatan {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
    font-weight: 400;
}

/* Birthday User Info Widget */
.birthday-user-info {
    position: fixed;
    top: 50px;
    left: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.856), rgba(255, 255, 255, 0.918));
    backdrop-filter: blur(20px);
    padding: 12px 18px;
    border-radius: 10px;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: birthdayGlow 2s ease-in-out infinite alternate;
    max-width: 250px;
}

.birthday-user-info::before {
    content: "🎂";
    font-size: 16px;
    animation: bounce 1s ease-in-out infinite;
}

.birthday-user-info .birthday-text {
    flex: 1;
    line-height: 1.3;
}

.birthday-user-info .birthday-name {
    font-weight: 700;
    color: #007AFF;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.birthday-user-info:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@keyframes birthdayGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 20px rgba(0, 122, 255, 0.2);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Mobile Responsive for Birthday Widget */
@media (max-width: 768px) {
    .birthday-user-info {
        top: 50px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    .birthday-user-info::before {
        font-size: 14px;
    }

    .birthday-user-info .birthday-text {
        line-height: 1.2;
    }

    .birthday-user-info .birthday-name {
        font-size: 12px;
    }

    .birthday-user-info:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 480px) {
    .birthday-user-info {
        top: 40px;
        left: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 6px;
    }

    .birthday-user-info::before {
        font-size: 12px;
    }

    .birthday-user-info .birthday-name {
        font-size: 11px;
    }
}

.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.575);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: white;
    font-size: 14px;
    z-index: 9000;
}

.menu-bar-left,
.menu-bar-right {
    display: flex;
    align-items: center;
}

.apple-logo {
    font-size: 18px;
    margin-right: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.dropbtn {
    color: white;
    padding: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.875);
    backdrop-filter: blur(10px);
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 5px 0;
}

.dropdown-content hr {
    margin: 7px 18px;
    border: none;
    border-top: 1.5px solid rgba(255, 255, 255, 0.13);
    border-radius: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.103), transparent);
    transition: background 0.3s;
}

.dropdown-content a {
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* Wider dropdown and icon-left layout only for Go menu */
.go-menu .dropdown-content {
    min-width: 200px;
}

.go-menu .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.go-menu .dropdown-content a i {
    width: 18px;
    text-align: center;
}

.go-menu .dropdown-content a span {
    flex: 1;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

#datetime {
    cursor: pointer;
    margin-left: 15px;
}

.calendar-popup {
    display: none;
    position: absolute;
    top: 35px;
    /* Adjust based on menu bar height */
    right: 10px;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.nav-arrow {
    cursor: pointer;
    padding: 5px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-weekdays span {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
}

.calendar-days span {
    padding: 8px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.calendar-days span:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.calendar-days span.today {
    background-color: #007aff;
    font-weight: bold;
}

.calendar-days span.other-month {
    color: rgba(255, 255, 255, 0.3);
}

.battery-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    color: white;
}

.battery-icon {
    font-size: 18px;
    margin-top: 2px;
    transition: color 0.3s ease;
}

#battery-level {
    font-size: 12px;
    min-width: 40px;
    transition: color 0.3s ease;
}

/* Universal App Container */
.app-container {
    width: 100%;
    max-width: auto;
    margin: 30px auto 30px auto;
    /* leave space for the menu bar */
    padding: 0 24px;
    /* give breathing room from screen edges */
}

.calc-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fafafa, #f3f3f3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    font-weight: 600;
}

.app-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    text-decoration: none;
    background: #ff2f2f;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease, transform 0.05s ease;
}

.app-close-btn:hover {
    background: #ff4545;
}

.app-close-btn:active {
    transform: scale(0.96);
}

.calc-display {
    padding: 18px 16px;
    text-align: right;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
    min-height: 60px;
}

.calc-subdisplay {
    padding: 8px 16px 0 16px;
    text-align: right;
    font-size: 13px;
    color: #6b7280;
    /* muted */
    min-height: 18px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    background: #fff;
}

.calc-btn {
    background: #f5f5f7;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.calc-btn:hover {
    background: #ebebef;
}

.calc-btn:active {
    transform: scale(0.98);
}

.calc-btn.op {
    background: #e8f0ff;
    color: #0a57ff;
}

.calc-btn.equals {
    background: #007aff;
    color: #fff;
}

.calc-btn.zero {
    grid-column: span 2;
}

@media (max-width: 480px) {
    .calc-display {
        font-size: 28px;
    }

    .calc-btn {
        padding: 12px 10px;
        font-size: 15px;
    }
}

/* Animation for charging */
.bi-battery-charging {
    animation: charging 2s infinite;
}

@keyframes charging {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.search-bar {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 80%;
    /* Adjust width for responsiveness */
    max-width: 400px;
    /* Limit max width */
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 0px;
    margin-top: 80px;
    /* Adjust for menu bar height */
}

.search-bar i {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 15px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Kotak blur penuh layar di belakang area ikon aplikasi */
.apps-strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 36px;
    padding: 36px 0 40px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(0, 0, 0, 0.08) 100%);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.12);
}

.apps-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 30px;
    padding: 20px;
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    /* Limit max width for larger screens */
    justify-content: center;
}

.apps-strip .desktop-icons {
    margin-left: auto;
    margin-right: auto;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 132px;
    height: 188px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-out !important;
    font-size: 14px;
    text-align: center;
    padding: 5px;
    padding-top: 10px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 14px rgba(0, 0, 0, 0.55);
}

.menu-button:hover {
    transform: scale(1.05);
    color: white;
}

.menu-button:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.menu-button .menu-icon {
    width: 116px;
    height: 116px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.10));
}

.menu-button span {
    width: 100%;
    font-size: 13px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 3px 16px rgba(0, 0, 0, 0.55);
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.admin-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-button i {
    font-size: 1.2em;
}

.admin-button span {
    font-size: 1em;
    font-weight: 500;
}

.wallpaper-link {
    cursor: pointer;
    display: block;
}

.wallpaper-link a {
    display: block;
    width: 100%;
    text-decoration: none;
}

#weather-display {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
    justify-content: space-between;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.weather-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    width: 100px !important;
    height: 100px !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.temperature {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.description {
    color: white;
    text-transform: capitalize;
    font-size: 1.1em;
}

.details {
    width: 100%;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    min-width: 800px;
    background: rgba(28, 28, 28, 0.95);
    margin: 3.5% auto;
    /* Adjusted margin for vertical centering with 80vh height */
    padding: 20px;
    border: 1px solid #888;
    width: 65%;
    /* Could be more or less, depending on screen size */
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    /* Set max height for the modal content */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: -15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 17px;
    /* Smaller font size for header */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
    max-height: 80vh;
    /* Adjust as needed */
    overflow-y: auto;
    line-height: 1.7;
    font-size: 14px;
}

.modal-header-draggable {
    cursor: grab;
}

.modal-header-draggable:active {
    cursor: grabbing;
}

/* Add fade transition styles */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.about-info {
    padding: 20px;
    color: white;
}

.info-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.info-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h3 i {
    font-size: 1.2em;
    color: #007AFF;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    color: #999;
    font-size: 0.9em;
}

.info-item .value {
    color: #fff;
    font-family: monospace;
    background: rgba(0, 122, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================
   Angsuran App Styles
   ===================== */
.app-container .calc-card {
    max-width: auto;
    width: auto;
}

#angsuran-app {
    padding: 16px;
}

#angsuran-app .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

@media (max-width: 720px) {
    #angsuran-app .form-grid {
        grid-template-columns: 1fr;
    }
}

#angsuran-app .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#angsuran-app .form-row label {
    font-size: 13px;
    color: #374151;
}

#angsuran-app .form-row input,
#angsuran-app .form-row select {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #111;
    padding: 10px 12px;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

#angsuran-app .form-row input::placeholder {
    color: #9ca3af;
}

#angsuran-app .form-row input:focus,
#angsuran-app .form-row select:focus {
    border-color: #0a57ff33;
    box-shadow: 0 0 0 3px #0a57ff1f;
    background: #fff;
}

#angsuran-app .form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* Emphasize primary action */
#angsuran-app .calc-btn.equals {
    background: linear-gradient(180deg, #34c759, #28a745);
    border: none;
    color: #fff;
    padding-left: 32px;
    padding-right: 32px;
    min-width: auto;
}

#angsuran-app .calc-btn.equals:hover {
    filter: brightness(1.05);
}

#angsuran-app .result-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 720px) {
    #angsuran-app .result-cards {
        grid-template-columns: 1fr;
    }
}

#angsuran-app .result-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

#angsuran-app .result-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

#angsuran-app .result-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #111;
}

#angsuran-app .schedule-wrap {
    margin-top: 18px;
}

#angsuran-app .schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

#angsuran-app .schedule-table {
    overflow: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

#angsuran-app .schedule-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

#angsuran-app .schedule-table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 1;
}

#angsuran-app .schedule-table th,
#angsuran-app .schedule-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    white-space: nowrap;
    color: #111;
}

#angsuran-app .schedule-table th:first-child,
#angsuran-app .schedule-table td:first-child,
#angsuran-app .schedule-table th:nth-child(2),
#angsuran-app .schedule-table td:nth-child(2) {
    text-align: left;
}

#angsuran-app .schedule-table tbody tr:nth-child(even) {
    background: #fafafa;
}

#angsuran-app .schedule-table tbody tr:hover {
    background: #f3f4f6;
}