* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #1a3a52 0%, #0d1f2d 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.top-bar {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
    color: white;
    font-size: 13px;
    position: absolute;
    top: 0px;
    width: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item {
    cursor: pointer;
    padding: 2px 8px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.app-name {
    font-weight: 600;
}

.status-icon-top {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.desktop-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 28px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.window {
    background: #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.fullscreen {
    width: 100%;
    height: 100%;
}

.title-bar {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 50%, #d8d8d8 100%);
    padding: 10px;
    display: flex;
    align-items: center;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.text-red {
    color: #ff5f57 !important;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #28ca42;
}

.text-green {
    color: #28ca42 !important;
}

.window-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.toolbar {
    background: linear-gradient(180deg, #d8d8d8 0%, #d0d0d0 50%, #c8c8c8 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #b0b0b0;
}

.toolbar-btn {
    background: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}

.toolbar-select {
    background: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 120px;
}

.toolbar-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
}

.toolbar-icon:hover {
    background: #e5e5e5;
}

.align-group {
    display: flex;
    background: #e8e8e8;
    border: 1px solid #aaa;
    border-radius: 6px;
    overflow: hidden;
}

.align-btn {
    width: 50px;
    height: 32px;
    background: #f0f0f0;
    border: none;
    border-right: 1px solid #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
}

.align-btn:last-child {
    border-right: none;
}

.align-btn:hover {
    background: #e5e5e5;
}

.align-btn.active {
    background: #d0d0d0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-box {

    width: 200px;
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 13px;
}

.main-content {
    flex: 1;
    height: 600px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.content-area {
    flex: 1;
    background: white;
    padding: 0;
    overflow-y: auto;
    transition: margin-left 0.3s ease-in-out;
}

.content-area.shifted {
    margin-left: 350px;
}

.list-container {
    width: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.list-item:hover {
    background: #f8f8f8;
}

.list-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon-swift {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.icon-cpp {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.icon-html {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.icon-new {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.icon-paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.icon-unpaid {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.icon-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.icon-completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
}

.list-item-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.detail-status {
    width: 80px;
    flex-shrink: 0;
}

.detail-time {
    width: 140px;
    flex-shrink: 0;
}

.detail-name {
    width: 180px;
    flex-shrink: 0;
}

.detail-phone {
    width: 130px;
    flex-shrink: 0;
}

.detail-amount {
    width: 120px;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    color: #444;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid gray;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-unpaid {
    background: #fee2e278;
    color: #991b1b;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.status-completed {
    background: #e1ffe0;
    color: #065f46;
}

.sidebar {
    width: 320px;
    background: #f5f5f5;
    border-left: 1px solid #ccc;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.sidebar-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sidebar-value {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.sidebar-btn {
    background: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 15px;
}

.sidebar-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    margin-bottom: 15px;
}

.status-bar {
    background: #d4d4d4;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #aaa;
    font-size: 12px;
    color: #333;
}

.status-left {
    display: flex;
    gap: 15px;
}

.status-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

.status-icon:hover {
    color: #000;
}

.dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dock.hidden {
    transform: translate(-50%, 100px);
    opacity: 0;
    pointer-events: none;
}

.dock-spacer {
    flex: 1;
    min-width: 40px;
}

.dock-toggle {
    position: fixed !important;
    bottom: 18px !important;
    left: 50% !important;
    margin-left: 236px !important;
    width: 50px;
    height: 50px;
    background: rgba(50, 50, 50, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.dock.hidden + .dock-toggle {
    bottom: 10px !important;
    margin-left: -25px !important;  /* Tengah pas dock hidden */
}

.dock-toggle:hover {
    background: rgba(70, 70, 70, 0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);  /* CUMA SCALE, GA ADA TRANSLATE */
}

.dock.hidden + .dock-toggle:hover {
    transform: scale(1.1);  /* SAMA, cuma scale */
}

.dock-toggle i {
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s ease;
}

.dock.hidden + .dock-toggle i {
    transform: rotate(180deg);
}

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.dock-icon:hover {
    transform: translateY(-10px);
}

.dock-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.finder {
    background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
}

.siri {
    background: linear-gradient(135deg, #ff69b4 0%, #9b59b6 100%);
}

.photos {
    background: linear-gradient(135deg, #ffcc00 0%, #ff6600 100%);
}

.safari {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
}

.firefox {
    background: linear-gradient(135deg, #ff9500 0%, #ff4500 100%);
}

.appstore {
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}

.notes {
    background: linear-gradient(135deg, #ffcc33 0%, #ff9900 100%);
}

.folder {
    background: linear-gradient(135deg, #a0826d 0%, #7d5a3b 100%);
}

.calendar {
    background: white;
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.tasks {
    background: white;
}

.rocket {
    background: linear-gradient(135deg, #666 0%, #333 100%);
}

.news {
    background: linear-gradient(135deg, #ff3b30 0%, #cc0000 100%);
}

.preview {
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}

.music {
    background: linear-gradient(135deg, #ff2d55 0%, #cc0033 100%);
}

.podcast {
    background: linear-gradient(135deg, #9b59b6 0%, #722a8f 100%);
}

.hide {
    display: none !important;
}

select.limit {
    background: transparent;
    border: 0;
    outline: none;
}

/* Left left-Sidebar Styles */
.left-sidebar {
    width: 350px;
    background: #f9f9f9;
    border-right: 1px solid #d1d1d1;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: -350px;
    top: 0;
    bottom: 0;
    z-index: 10;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.left-sidebar.open {
    left: 0;
}

.left-sidebar-header {
    padding: 15px;
    background: #e8e8e8;
    border-bottom: 1px solid #d1d1d1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-sidebar-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.close-left-sidebar {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s;
}

.close-left-sidebar:hover {
    color: #000;
}

.left-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Right right-Sidebar Styles */
.right-sidebar {
    width: 350px;
    background: #f9f9f9;
    border-right: 1px solid #d1d1d1;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: -350px;
    top: 0;
    bottom: 0;
    z-index: 10;
    transition: right 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.right-sidebar.open {
    right: 0;
}

.right-sidebar-header {
    padding: 15px;
    background: #e8e8e8;
    border-bottom: 1px solid #d1d1d1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-sidebar-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.close-right-sidebar {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.2s;
}

.close-right-sidebar:hover {
    color: #000;
}

.right-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.right-sidebar-actions {
    padding: 15px;
    background: #e8e8e8;
    border-top: 1px solid #d1d1d1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007aff;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    padding: 15px;
    background: #e8e8e8;
    border-top: 1px solid #d1d1d1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0051d5;
}

.btn-secondary {
    background: #e8e8e8;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d1d1;
}

.btn-danger {
    background: #ff3b30;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

small {
    font-size: 11px;
    color: lightslategray;
}


/* Container notifikasi */
.macos-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(230, 230, 230, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    /* padding: 14px 16px; */
    display: none;
    align-items: center;
    opacity: 5s ease-out forwards;
    /* hilang otomatis 5 detik */
    z-index: 9999;
}

/* Icon Apple */
.macos-notification img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin: 14px;
    flex-shrink: 0;
}

/* Bagian teks */
.macos-notification .content {
    flex: 1;
    color: #1d1d1f;
    margin-top: -15px;
}

.macos-notification .title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.macos-notification .message {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
}

/* Tombol di kanan */
.macos-notification .actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
    border-left: 1px solid gray;
    padding: 7px 0px 7px 0px;
}

.macos-notification .actions button {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: gray;
    padding: 4px 20px;

    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.macos-notification .actions button:first-child {
    border-bottom: 1px solid gray;
    padding-bottom: 11px;
}

.macos-notification .actions button:hover {
    background: rgba(0, 122, 255, 0.15);
}

.macos-notification .actions button:active {
    background: rgba(0, 122, 255, 0.25);
}

/* Animasi muncul */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animasi hilang */
@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.macos-notification.show {
    animation: slideIn 0.4s ease-out;
}

.macos-notification.hide {
    animation: slideOut 0.4s ease-out forwards;
}

/* right sidebar invoice cicilan list */
ul.tasklist {
    list-style-type: none;
}

ul.tasklist li {
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
    background-color: #f5f5f5;
    display: flex;
}

ul.tasklist li input[type="checkbox"] {
    margin-right: 5px;
}

ul.tasklist li span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.content-wrapper {
    position: relative;
}

.content-submenu {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    z-index: 9999;
}

.content-wrapper.expanded .content-submenu {
    display: flex;
}

.submenu-row {
    position: relative;
    display: flex;
    align-items: center;
}



.content-submenu.show {
    display: flex !important;
}

.submenu-item {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.submenu-item:hover {
    transform: translateY(-5px);
}

#content-menu {
    position: relative;
}

/* submenu nempel ke Content */
.content-submenu {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(255,255,255,.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    z-index: 9999;
}

/* tampil saat aktif */
.content-wrapper.expanded .content-submenu {
    display: flex;
}

.content-submenu.show {
    display: flex !important;
}

.submenu-item {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.submenu-item:hover {
    transform: translateY(-5px);
}

.submenu-label {
    margin-right: 10px;
    position: absolute;
    right: 60px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .submenu-label {
        background: rgba(50,50,50,.95);
        color: #fff;
    }
}

/* Posisi label untuk setiap item - TURUN SEDIKIT */
.content-submenu > div:nth-child(1) + .submenu-label {
    top: 16px;
}

.content-submenu > div:nth-child(3) + .submenu-label {
    top: 74px;
}

#content-menu {
    position: relative;
}

/* Theme Submenu Styles */
.theme-wrapper {
    position: relative;
}

.theme-submenu {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    z-index: 9999;
    min-width: 150px;
    margin-left: 40px;
}

.theme-wrapper.expanded .theme-submenu {
    display: flex;
}

.theme-submenu.show {
    display: flex !important;
}

/* Submenu Item Styles */
.theme-submenu .submenu-item {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.theme-submenu .submenu-item:hover {
    transform: translateY(-5px);
}

/* Submenu Label Styles */
.theme-submenu .submenu-label {
    margin-right: 10px;
    position: absolute;
    right: 60px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Posisi label untuk setiap item Theme */
.theme-submenu > div:nth-child(1) .submenu-label {
    top: 10px;
    margin-right: 95px;
}

.theme-submenu > div:nth-child(2) .submenu-label {
    top: 10px;
    margin-right: 95px;
}

/* Ensure both submenus don't overlap */
.content-wrapper.expanded ~ .theme-wrapper .theme-submenu,
.theme-wrapper.expanded ~ .content-wrapper .content-submenu {
    display: none !important;
}


/* Responsive for dark mode */
@media (prefers-color-scheme: dark) {
    .theme-submenu .submenu-label {
        background: rgba(50, 50, 50, 0.95);
        color: #fff;
    }
}