:root {
    --bg-color: #0b130f;
    --text-color: #f1f7f4;
    --text-muted: #859d93;
    --primary-color: #10b981;
    --secondary-color: #eab308;
    --card-bg: rgba(16, 28, 22, 0.4);
    --card-hover-bg: rgba(16, 28, 22, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(11, 19, 15, 0.6);
    --danger-color: #f87171;
    --success-color: #34d399;
    --snooze-color: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    width: 400px;
    height: 400px;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 12px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex-grow: 1;
    width: 100%;
}

/* Landing / Hero */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Auth Card */
.auth-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
}

.auth-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea {
    height: 80px;
    resize: vertical;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-hover-bg);
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #059669;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.divider:not(:empty)::before {
    margin-right: 12px;
}

.divider:not(:empty)::after {
    margin-left: 12px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: #fca5a5;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Dashboard Quick Add */
.quick-add-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Finds Grid & Cards */
.finds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.find-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.find-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--card-hover-bg);
    transform: translateY(-2px);
}

.find-card.snoozed {
    border-color: rgba(245, 158, 11, 0.2);
    opacity: 0.85;
}

.find-card.snoozed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--snooze-color);
}

.find-card.done {
    border-color: rgba(16, 185, 129, 0.2);
    opacity: 0.7;
}

.find-card.done::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success-color);
}

.find-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.find-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.find-category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.find-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    word-break: break-all;
}

.find-link:hover {
    text-decoration: underline;
}

.find-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

.find-reminder-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.find-reminder-status.status-snoozed {
    color: var(--snooze-color);
}

.find-reminder-status.status-active {
    color: var(--primary-color);
}

.find-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.find-action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.find-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.find-action-btn.btn-done-action:hover {
    border-color: var(--success-color);
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
}

.find-action-btn.btn-snooze-action:hover {
    border-color: var(--snooze-color);
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--primary-color);
}
