/* Estilos especificos de Apps */

/* ── Finder Tabbed Chrome ───────────────────────────────────────── */
.finder-chrome {
    height: 44px;
    background: rgba(242,242,247,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    user-select: none;
    cursor: move;
}

.finder-tab-strip {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 520px;
    flex: 0 1 auto;
    height: 100%;
}
.finder-tab-strip::-webkit-scrollbar { display: none; }

.finder-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    height: 32px;
    border-radius: 8px 8px 0 0;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    color: #555;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    transition: background 0.15s;
    align-self: flex-end;
}
.finder-tab:hover { background: rgba(0,0,0,0.06); }
.finder-tab.active {
    background: white;
    color: #000;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 0 white;
}
.finder-tab-close {
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}
.finder-tab:hover .finder-tab-close { opacity: 1; }
.finder-tab-close:hover { background: rgba(255,59,48,0.2); color: #ff3b30; }

.finder-new-tab {
    width: 24px; height: 24px;
    border-radius: 6px; border: none;
    background: transparent;
    color: #666; font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    margin-bottom: 4px; /* Align with tabs */
}
.finder-new-tab:hover { background: rgba(0,0,0,0.06); }

/* ── Finder Toolbar ─────────────────────────────────────────────── */
.finder-toolbar {
    height: 38px;
    background: rgba(248,248,248,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    flex-shrink: 0;
    overflow: visible !important;
}

.finder-toolbar-btn {
    padding: 4px 8px;
    border: none; background: transparent;
    border-radius: 6px; cursor: pointer;
    color: #444; font-size: 12px;
    display: flex; align-items: center; gap: 4px;
    transition: background 0.12s;
}
.finder-toolbar-btn:hover { background: rgba(0,0,0,0.07); }
.finder-toolbar-label { font-size: 11px; font-weight: 500; }

.finder-breadcrumb {
    font-size: 12px; font-weight: 600; color: #333;
    padding: 3px 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.finder-search-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.07);
    border-radius: 8px; padding: 3px 10px;
    font-size: 11px; color: #888;
}
.finder-search-wrap input {
    border: none; background: transparent; outline: none;
    font-size: 11px; width: 110px; color: #333;
}

.finder-toolbar-group { 
    position: relative; 
    z-index: 1000;
}

.finder-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 10000;
    overflow: hidden;
    padding: 4px;
}
.finder-dd-item {
    padding: 7px 12px; font-size: 12px; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    color: #333; transition: background 0.12s;
}
.finder-dd-item:hover { background: #007AFF; color: white; }

/* ── Finder Status Bar ──────────────────────────────────────────── */
.finder-statusbar {
    height: 22px;
    border-top: 1px solid rgba(0,0,0,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #888;
    background: rgba(248,248,248,0.9);
    flex-shrink: 0;
}

/* ── Finder List View ───────────────────────────────────────────── */
.finder-list-view { display: flex; flex-direction: column; gap: 2px; }
.finder-list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border-radius: 6px;
    cursor: pointer; font-size: 12px; color: #333;
    transition: background 0.1s;
}
.finder-list-item:hover { background: rgba(0,122,255,0.08); }
.finder-list-item img { width: 24px; height: 24px; object-fit: contain; }
.finder-list-col { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-list-col.lang { width: 70px; flex: none; color: #888; font-size: 11px; }

/* ── Context Menu Submenu ───────────────────────────────────────── */
.menu-item-sub {
    position: relative;
}
.menu-item-sub .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(30, 30, 32, 0.95);
    backdrop-filter: blur(25px);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 5px;
    width: 160px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 60000;
}
.menu-item-sub:hover .submenu { display: block; }


.safari-content {
    background: white;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.safari-toolbar {
    height: 40px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.word-content {
    background: #f0f0f0;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.word-page {
    background: white;
    width: 600px;
    min-height: 842px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 60px;
    color: black;
    outline: none;
}

.music-content {
    background: #1c1c1e;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.mail-sidebar {
    width: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.skill-item {
    background: #f8f8fa;
    border-radius: 12px;
    padding: 15px;
    color: black;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-content {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
}

.hacker-banner {
    border: 2px solid #0f0;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
}

.notes-content {
    background: #fff9c4;
    height: 100%;
    padding: 0;
}

#notes-area {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    padding: 20px;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    font-size: 16px;
    outline: none;
    line-height: 1.5;
    color: #333;
}

/* Calculator */
.calc-content {
    background: black;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.calc-display {
    color: white;
    font-size: 50px;
    text-align: right;
    margin-bottom: 20px;
    font-weight: 200;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}

.calc-btn {
    border-radius: 50%;
    border: none;
    font-size: 20px;
    background: #333;
    color: white;
    cursor: pointer;
    transition: filter 0.2s;
}

.calc-btn:hover {
    filter: brightness(1.3);
}

.calc-btn:active {
    filter: brightness(1.6);
}

.btn-orange {
    background: #ff9f0a;
}

.btn-grey {
    background: #a5a5a5;
    color: black;
}

.btn-zero {
    grid-column: span 2;
    border-radius: 40px;
    text-align: left;
    padding-left: 25px;
}

/* Settings */
.wallpaper-thumb {
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.wallpaper-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}