/* Dark Theme - No Gradient - Mobile First */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #1f6feb;
    --border: #30363d;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
    padding-bottom: 2rem;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Tailwind Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #238636;
    color: #3fb950;
}

.toast.error {
    border-color: #f85149;
    color: #f85149;
}

/* Button Styles */
.btn-add {
    background-color: var(--accent) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-add:hover {
    background-color: var(--accent-hover) !important;
}

.btn-add:active {
    transform: scale(0.95);
}

/* Focus states */
input:focus, button:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

/* Remove tap highlight on mobile */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure buttons are clickable */
button {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Form input */
input[type="text"] {
    min-height: 48px;
}
