/* Androfus Android Exact Theme - Obsidian Dark & Neon Emerald */
:root {
    --bg-main: #05070A;
    --surface-card: #0F131D;
    --surface-elevated: #161B28;
    --card-stroke: #1E2A40;
    --border-glass: rgba(255, 255, 255, 0.08);
    --glass-overlay: rgba(255, 255, 255, 0.04);
    
    --primary: #00E676;
    --primary-dark: #00C853;
    --primary-light: #69F0AE;
    --primary-glow: rgba(0, 230, 118, 0.35);
    
    --white: #FFFFFF;
    --black: #000000;
    --text-primary: #E1E8F0;
    --text-secondary: #7A8BA0;
    --text-muted: #4A5A7A;
    
    --success: #2ECC71;
    --warning: #F39C12;
    --error: #E74C3C;
    --info: #3498DB;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* App Bar (activity_main.xml top bar) */
.androfus-appbar {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    margin: 8px 12px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 8px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.appbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-drawer-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-drawer-toggle:hover {
    background: rgba(0, 230, 118, 0.1);
}

.appbar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.appbar-title-block {
    display: flex;
    flex-direction: column;
}

.appbar-app-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    line-height: 1.1;
}

.appbar-usb-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.status-dot-circle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--error);
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.8);
    transition: all 0.3s ease;
}

.status-dot-circle.connected {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-text-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.appbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appbar-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.appbar-action-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Main Container & Drawer Layout */
.app-viewport {
    display: flex;
    flex: 1;
    position: relative;
    padding: 0 12px 12px;
    gap: 12px;
    height: calc(100vh - 80px);
}

/* Sidebar Drawer (Exact bg_sidebar.xml style) */
.androfus-drawer {
    width: 310px;
    background: linear-gradient(180deg, var(--surface-card) 0%, var(--bg-main) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

/* Storage Bar (Android ll_storage_summary) */
.drawer-storage-card {
    background: var(--surface-elevated);
    border: 1px solid var(--card-stroke);
    border-radius: 10px;
    margin: 12px 12px 8px;
    padding: 10px 14px;
}

.storage-title-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.storage-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.storage-progress-fill {
    height: 100%;
    width: 34%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Search Modules Input */
.drawer-search-wrap {
    padding: 6px 12px 10px;
}

.drawer-search-input {
    width: 100%;
    background: #0B0E14;
    border: 1px solid var(--card-stroke);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.drawer-search-input:focus {
    border-color: var(--primary);
}

/* Module Categories List */
.drawer-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px 16px;
}

/* Android Collapsible Category Group (nav_item_category.xml) */
.drawer-flat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 10px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.drawer-flat-item .drawer-item-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.drawer-flat-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.drawer-flat-item.active {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.drawer-flat-item.active .dock-cat-icon {
    background: var(--primary);
    color: #05070A;
    box-shadow: 0 0 12px var(--primary-glow);
}

.drawer-category-group {
    margin-bottom: 3px;
}

.drawer-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 46px;
    padding: 0 10px;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.drawer-cat-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dock-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.drawer-cat-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.drawer-chevron {
    font-size: 11px;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.drawer-category-group.expanded .drawer-chevron {
    transform: rotate(180deg);
}

.drawer-category-group.expanded .drawer-cat-title {
    color: var(--primary-light);
}

.drawer-cat-children {
    display: none;
    flex-direction: column;
    padding: 2px 0 6px 0;
}

.drawer-category-group.expanded .drawer-cat-children {
    display: flex;
}

/* Tiny visual subheader inside expanded container (like dpToPx(24), 10sp bold, letterSpacing 0.12) */
.drawer-subcat-header {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 14px 4px 24px;
}

/* Sub items (nav_item_sub.xml) */
.drawer-sub-item {
    display: flex;
    align-items: center;
    height: 38px;
    margin: 1px 6px;
    padding: 0 10px 0 22px;
    border-radius: 8px;
    background: transparent;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.drawer-sub-item .sub-icon {
    font-size: 13.5px;
    width: 18px;
    margin-right: 11px;
    color: var(--primary);
    text-align: center;
    opacity: 0.85;
}

.drawer-sub-item .sub-title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-sub-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.drawer-sub-item:hover .sub-title {
    color: #fff;
}

.drawer-sub-item:hover .sub-icon {
    opacity: 1;
    color: var(--primary-light);
}

.drawer-sub-item.active {
    background: rgba(0, 230, 118, 0.12);
    border-left: 3px solid var(--primary);
}

.drawer-sub-item.active .sub-title {
    color: #fff;
    font-weight: 700;
}

.drawer-sub-item.active .sub-icon {
    color: var(--primary-light);
    opacity: 1;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.drawer-nav-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.drawer-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.drawer-nav-item:hover i {
    color: var(--primary-light);
}

.drawer-nav-item.active {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: #fff;
}

.drawer-nav-item.active i {
    color: var(--primary);
}

/* Badges (bg_badge_pro.xml & bg_badge_creator.xml) */
.android-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-pro {
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.badge-novedad {
    background: rgba(255, 202, 40, 0.15);
    color: #FFCA28;
    border: 1px solid rgba(255, 202, 40, 0.4);
}

.badge-otg {
    background: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.4);
}

/* Main Content Workspace */
.androfus-workspace {
    flex: 1;
    background: var(--bg-main);
    border-radius: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Glass Card Premium (style="@style/Widget.Androfus.Card.Glass") */
.glass-card {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Android Environment Requirement Banner (Only works in Android) */
.android-only-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(90deg, rgba(255, 179, 0, 0.08) 0%, rgba(20, 24, 34, 0.9) 100%);
    border: 1px solid rgba(255, 179, 0, 0.35);
    border-left: 4px solid #FFB300;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.notice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 179, 0, 0.15);
    border: 1px solid rgba(255, 179, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFB300;
    font-size: 18px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #FFB300;
    margin-bottom: 2px;
}

.notice-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Unified Pendrive / USB Drive Selector Card */
.usb-drive-selector-card {
    background: linear-gradient(135deg, rgba(15, 19, 29, 0.98) 0%, rgba(13, 21, 32, 0.98) 100%);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.drive-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drive-icon-dock {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.drive-title-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-meta-text {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.drive-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Partition Visual Map Bar */
.partition-visual-bar {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    margin-bottom: 14px;
}

.partition-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    cursor: pointer;
}

.partition-bar-segment:hover {
    filter: brightness(1.2);
}

.part-seg-fat { background: #00E676; color: #05070A; }
.part-seg-ntfs { background: #00B0FF; color: #05070A; }
.part-seg-ext { background: #E040FB; }
.part-seg-efi { background: #FFD600; color: #05070A; }
.part-seg-free { background: #37474F; color: #B0BEC5; }

/* Fastboot Chips */
.fastboot-chip-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 12px;
}

.fastboot-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fastboot-chip:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--primary);
    color: #fff;
}

/* Home Welcome Banner */
.welcome-header-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.welcome-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* Radar Scan View (card_usb_status) */
.usb-monitor-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface-card);
    border: 1px solid var(--card-stroke);
    border-radius: 14px;
    margin-bottom: 16px;
}

.radar-ring-container {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radar-pulse-ring {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: radarPulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0.6;
}

.radar-center-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

.usb-monitor-text {
    flex: 1;
}

.hardware-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.usb-main-status-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}

.btn-scan-otg {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.4);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-scan-otg:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 14px var(--primary-glow);
}

/* Quick Action Cards Grid (HomeFragment) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dash-action-card {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-action-card:hover {
    background: var(--surface-elevated);
    border-color: rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dash-card-info {
    flex: 1;
}

.dash-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.dash-card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Fragment Container & Back Bar */
.fragment-view {
    display: none;
    animation: fadeInView 0.2s ease-out;
}

.fragment-view.active {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fragment-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
}

.fragment-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back-home {
    background: var(--surface-card);
    border: 1px solid var(--card-stroke);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-back-home:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.fragment-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Buttons (Material 3 Android style) */
.btn-android {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-android-primary {
    background: var(--primary);
    color: #000;
}

.btn-android-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 16px var(--primary-glow);
}

.btn-android-secondary {
    background: var(--surface-elevated);
    border: 1px solid var(--card-stroke);
    color: var(--text-primary);
}

.btn-android-secondary:hover {
    border-color: var(--primary);
    color: #fff;
}

.btn-android-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff6b6b;
}

.btn-android-danger:hover {
    background: var(--error);
    color: #fff;
}

.btn-android-sm {
    padding: 6px 12px;
    font-size: 11.5px;
}

.btn-android:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Inputs & Form Controls */
.form-input-android {
    width: 100%;
    background: #090D14;
    border: 1px solid var(--card-stroke);
    border-radius: 8px;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.form-input-android:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.form-input-mono {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Terminal View (Hacker Terminal) */
.android-terminal {
    background: #04060A;
    border: 1px solid var(--card-stroke);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.android-terminal-header {
    background: #0A0F18;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-stroke);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.android-terminal-body {
    height: 300px;
    overflow-y: auto;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    color: #00E676;
    white-space: pre-wrap;
    word-break: break-all;
}

.android-terminal-bar {
    display: flex;
    background: #080D14;
    border-top: 1px solid var(--card-stroke);
}

.terminal-prompt-sym {
    padding: 8px 12px;
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 13px;
}

.terminal-inline-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 0;
}

/* Tables & Lists */
.android-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.android-table th {
    text-align: left;
    padding: 8px 12px;
    background: #090E17;
    color: var(--text-muted);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--card-stroke);
}

.android-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.android-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Dropzones */
.android-dropzone {
    border: 2px dashed var(--card-stroke);
    border-radius: 12px;
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
    background: rgba(15, 19, 29, 0.6);
    transition: all 0.2s;
}

.android-dropzone:hover, .android-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(0, 230, 118, 0.05);
}

/* Oscilloscope Canvas */
.canvas-oscilloscope {
    width: 100%;
    height: 250px;
    background: #04060A;
    border: 1px solid var(--card-stroke);
    border-radius: 8px;
    display: block;
}

/* Mobile responsive drawer toggle */
@media (max-width: 860px) {
    .app-viewport {
        flex-direction: column;
        padding: 0 8px 8px;
    }
    .androfus-drawer {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 200;
        border-radius: 0;
        transform: translateX(-100%);
        width: 290px;
    }
    .androfus-drawer.open {
        transform: translateX(0);
    }
    .drawer-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 199;
        display: none;
    }
    .drawer-overlay.active {
        display: block;
    }
}
