body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: #F8F9FA; color: #1A1A1A; font-size: 13px; scroll-behavior: smooth; overflow-x: hidden; }

.sidebar { 
    width: 260px; 
    background: white; 
    border-right: 1px solid #F1F1F1; 
    height: 100vh; 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    flex-shrink: 0;
    overflow: hidden;
}

body.sidebar-collapsed .sidebar { 
    width: 88px; 
}

.main-content { 
    height: 100vh; 
    flex: 1;
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    background-color: #F8F9FA;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Only internal sections scroll */
    position: relative;
}

/* Stats section: fullscreen overlay next to sidebar */
body.stats-mode #stats {
    position: fixed !important;
    top: 0 !important;
    left: 260px !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: auto !important;
    z-index: 500 !important;
    background: #F8F9FA;
    display: block !important;
}
body.stats-mode.sidebar-collapsed #stats {
    left: 88px !important;
}
#stats-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 100vh;
}
#sidebar-overlay { z-index: 1900; }

.logo-text, .nav-label {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
}

body.sidebar-collapsed .logo-text, 
body.sidebar-collapsed .nav-label { 
    opacity: 0;
    visibility: hidden;
    width: 0;
    position: absolute;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.sidebar-collapsed #toggle-icon { 
    transform: rotate(180deg); 
}

.card { background: white; border: 1px solid #F1F1F1; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: all 0.3s; }
.active-link { background-color: #EE4D2D !important; color: white !important; }
.shopee-color { color: #EE4D2D; }
.bg-shopee { background-color: #EE4D2D; }

.nav-btn { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    width: 100%; 
    padding: 12px 16px; 
    border-radius: 12px; 
    font-weight: 600; 
    color: #6B7280; 
    transition: all 0.2s; 
    border: none; 
    background: none; 
    cursor: pointer; 
    white-space: nowrap;
    min-height: 44px;
}

.nav-btn:hover { background-color: #F9FAFB; color: #1A1A1A; }

body.sidebar-collapsed .nav-btn { 
    padding: 0;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto;
}

body.sidebar-collapsed .nav-btn i:first-child {
    margin: 0;
    font-size: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-input { width: 100%; padding: 6px; border-radius: 6px; transition: all 0.2s; border: 1px solid transparent; outline: none; }
.table-input:not([readonly]) { border: 1px solid #F1F1F1; background-color: #FAFAFA; }
.table-input:not([readonly]):focus { border-color: #EE4D2D; background-color: #FFF5F3; }
input:read-only { background-color: transparent !important; border: none !important; color: #6B7280; font-weight: 600; cursor: default; }

#auth-modal.flex, #delete-modal.flex, #share-modal.flex, #project-modal.flex, #add-modal.flex, #drive-modal.flex, #bank-create-modal.flex, #bank-share-modal.flex, #bank-delete-modal.flex { display: flex !important; }
.input-error { border-color: #ff4d4d !important; background-color: #fff5f5 !important; }
.status-success { background-color: #ECFDF5; color: #059669; border: 1px solid #10B981; }
.status-error { background-color: #FEF2F2; color: #DC2626; border: 1px solid #EF4444; }
input[readonly][data-field="mainLink"],
input[readonly][data-field="secondLink"] { color: #2563eb; cursor: pointer; text-decoration: underline; background: transparent; }

@media (max-width: 768px) {
    .sidebar { 
        position: fixed;
        left: -100%; 
        width: 260px !important; 
        z-index: 2000 !important;
    }
    .main-content { 
        margin-left: 0 !important; 
        padding: 0; /* Remove padding for mobile, handle in section */
        height: 100vh;
    }
    body.mobile-sidebar-active .sidebar { 
        left: 0; 
    }
    body.mobile-sidebar-active #sidebar-overlay { 
        display: block; 
    }
    .logo-text, .nav-label { display: inline !important; opacity: 1 !important; visibility: visible !important; width: auto !important; }
}

#sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1900; display: none; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #E5E7EB; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input:checked + .slider { background-color: #EE4D2D; }
input:checked + .slider:before { transform: translateX(20px); }

.project-card {
    position: relative;
    background: white;
    border: 1px solid #F1F1F1;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

.project-card:hover {
    border-color: #EE4D2D;
    box-shadow: 0 10px 25px rgba(238, 77, 45, 0.1);
    transform: translateY(-4px);
}

.project-card-icon-btn {
    width: 28px;
    height: 28px;
    background: #FAFAFA;
    border: 1px solid #F1F1F1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
    cursor: pointer;
}

.project-card-icon-btn:hover {
    background: #FFF;
    border-color: #EE4D2D;
    color: #EE4D2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-card-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-count i {
    font-size: 12px;
    color: #D1D5DB;
}

#share-link-display {
    user-select: all;
    word-break: break-all;
    cursor: pointer;
}

.share-animation {
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-carousel {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-carousel img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

#upload-bar {
    background: linear-gradient(90deg, #EE4D2D, #ff7e67);
    box-shadow: 0 0 10px rgba(238, 77, 45, 0.3);
}

/* Toast notifications → handled by src/utils/notify.js (CSS injected dynamically) */


/* ── Layout New: Fixed Top, Scrollable Bottom ── */

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
}

@media (max-width: 768px) {
    .content-section { padding-top: 80px; }
}

/* Bagian Atas yang Tidak Ikut Scroll */
.header-part-fixed {
    flex: 0 0 auto;
}

/* Bagian Tabel yang Bisa Scroll */
.scroll-part-table {
    flex: 1 1 0;
    overflow-y: auto !important;
    overflow-x: auto !important;
    background: white;
    border-radius: 16px;
    border: 1px solid #F1F1F1;
    position: relative;
    scrollbar-width: thin;
}

.table-th-sticky {
    position: sticky;
    top: 0; 
    z-index: 40;
    background-color: #F9FAFB !important; 
    white-space: nowrap;
    border-bottom: 2px solid #F1F1F1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
}

/* Cache bust: 5.0 - 20260409195234 */
