/* NeuroEscrow — Minimalist Dark Theme (holograms.media + X style) */

:root {
    /* Colors from holograms.media */
    --ne-black: #000000;
    --ne-dark-gray: rgba(255, 255, 255, 0.05);
    --ne-gray: rgba(255, 255, 255, 0.1);
    --ne-light-gray: rgba(255, 255, 255, 0.34);
    --ne-white: #dddddd;
    --ne-accent: #dddddd; /* Changed from green to white */
    --ne-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --ne-spacing-xs: 4px;
    --ne-spacing-sm: 8px;
    --ne-spacing-md: 12px;
    --ne-spacing-lg: 16px;
    --ne-spacing-xl: 24px;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--ne-black);
    color: var(--ne-white);
    height: 100%;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* Header */
.app-header {
    background: var(--ne-black);
    border-bottom: 1px solid var(--ne-border);
    padding: var(--ne-spacing-md) var(--ne-spacing-lg);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ne-white);
    letter-spacing: -0.5px;
}

.user-info {
    font-size: 13px;
    color: var(--ne-light-gray);
}

/* Main Content */
.app-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--ne-spacing-lg);
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

/* Voice Interface (Main Screen) */
.voice-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.voice-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--ne-dark-gray);
    border: 2px solid var(--ne-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--ne-spacing-xl);
    position: relative;
}

.voice-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ne-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-button:active {
    transform: scale(0.95);
}

.voice-button.recording {
    border-color: var(--ne-white);
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-button.recording::before {
    opacity: 0.3;
    animation: ripple 1.5s ease-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.voice-icon {
    font-size: 48px;
}

.voice-hint {
    font-size: 14px;
    color: var(--ne-light-gray);
    margin-top: var(--ne-spacing-md);
}

.voice-status {
    font-size: 13px;
    color: var(--ne-white);
    margin-top: var(--ne-spacing-sm);
    min-height: 20px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--ne-black);
    border-top: 1px solid var(--ne-border);
    padding: var(--ne-spacing-sm) 0 calc(var(--ne-spacing-sm) + env(safe-area-inset-bottom));
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--ne-spacing-xs) var(--ne-spacing-lg);
    border: none;
    background: none;
    color: var(--ne-light-gray);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-btn.active {
    color: var(--ne-white);
}

.nav-icon {
    font-size: 22px;
    line-height: 1;
}

.nav-label {
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--ne-dark-gray);
    border: 1px solid var(--ne-border);
    border-radius: 8px;
    padding: var(--ne-spacing-lg);
    margin-bottom: var(--ne-spacing-md);
}

.draft-card {
    background: rgba(255, 255, 255, 0.03);
    border-left-width: 3px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--ne-spacing-sm);
    color: var(--ne-white);
}

.card-subtitle {
    font-size: 13px;
    color: var(--ne-light-gray);
    margin-bottom: var(--ne-spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--ne-border);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    background: var(--ne-dark-gray);
    color: var(--ne-white);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--ne-white);
    color: var(--ne-black);
    border-color: var(--ne-white);
}

.btn-secondary {
    background: var(--ne-dark-gray);
    color: var(--ne-white);
    border-color: var(--ne-border);
}

.btn-success {
    background: var(--ne-white);
    color: var(--ne-black);
    border-color: var(--ne-white);
}

/* Forms */
.form-group {
    margin-bottom: var(--ne-spacing-lg);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ne-light-gray);
    margin-bottom: var(--ne-spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--ne-border);
    background: var(--ne-dark-gray);
    color: var(--ne-white);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--ne-light-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ne-light-gray);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--ne-spacing-md);
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ne-light-gray);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.view {
    animation: fadeIn 0.25s ease-out;
}

/* Responsive */
@media (min-width: 768px) {
    .app-main {
        max-width: 600px;
        margin: 0 auto;
    }
}
