/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, sans-serif;
    background: #121212;
    color: #e0e0e0;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

/* === Hamburger Button === */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* === Back Button === */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #4fc3f7;
    text-decoration: none;
    transition: background .15s;
    flex-shrink: 0;
}

.back-btn:hover,
.back-btn:active {
    background: rgba(255, 255, 255, .1);
}

/* === Slide Menu === */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.menu-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #1e1e1e;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,.6);
}

.slide-menu--open {
    transform: translateX(0);
}

.slide-menu__close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
}

.slide-menu__list {
    list-style: none;
    padding: 0 8px;
}

.slide-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    transition: background .15s;
}

.slide-menu__link:hover,
.slide-menu__link:active {
    background: #333;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1e1e1e;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.header__row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.header__row:not(:last-child) {
    margin-bottom: 10px;
}

.header__title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

/* === OneDrive Badge === */
.onedrive-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #81c784;
    white-space: nowrap;
}

.onedrive-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a047;
}

.onedrive-badge--off {
    color: #9e9e9e;
}

.onedrive-badge--off .onedrive-badge__dot {
    background: #555;
}

/* === Main Area === */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

/* === State Messages === */
.state-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 16px;
    text-align: center;
    color: #9e9e9e;
    font-size: 15px;
}

/* === Spinner === */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #333;
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(.96);
}

.btn--primary {
    background: #4fc3f7;
    color: #000;
}

.btn--primary:hover {
    background: #39b0e6;
}

/* === Responsive === */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
}
