
/* App Layers */
.app-layer {
    background: #050508 !important;
    padding: 0 !important;
    z-index: 50;
    transform: translateY(100%);
}

.app-layer.active {
    transform: translateY(0);
}

.app-header {
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #0a0a0f;
}

/* Clickable Home Button instead of swipe bar */
.home-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s, transform 0.2s;
}
.home-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%) scale(1.05);
}
.home-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.app-icon {
    cursor: pointer;
    transition: transform 0.2s;
}
.app-icon:hover {
    transform: scale(1.05);
}

/* Terminal App */
.terminal-content {
    flex: 1;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #0f0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-input-row {
    display: flex;
    padding: 0.5rem 1rem 5rem;
    background: #000;
    border-top: 1px solid #222;
}

.prompt {
    color: #0f0;
    font-family: monospace;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

#termInput {
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: 0.8rem;
    flex: 1;
    outline: none;
}

/* Daemon App */
.daemon-dashboard {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.shield-status {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid #00cc66;
    color: #00cc66;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.threat-log {
    font-family: monospace;
    font-size: 0.7rem;
}

.threat-log p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #333;
}
.action.block { color: #ff3366; }
.time { color: #888; margin-right: 0.5rem; }

/* Camera App */
#appCamera {
    background: #000 !important;
}

.camera-viewfinder {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=600&auto=format&fit=crop') center/cover;
    position: relative;
}

.cam-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.reticle {
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
}
.reticle::before, .reticle::after {
    content: '';
    position: absolute;
    background: var(--accent-gold);
}
.reticle::before { top: 50%; left: -10px; right: -10px; height: 1px; }
.reticle::after { left: 50%; top: -10px; bottom: -10px; width: 1px; }

.cam-stats {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--accent-gold);
}

.cam-controls {
    height: 100px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shutter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}
.shutter-btn:active {
    background: #fff;
}

/* Signal App */
.chat-view {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 80%;
}

.chat-bubble.received {
    background: #222;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.sent {
    background: #3a76f0;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Tor App */
.tor-view {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tor-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.tor-status h3 {
    color: #00cc66;
    margin-bottom: 0.5rem;
}

.tor-status p {
    font-size: 0.8rem;
    color: #888;
}
