:root {
    --bg-color: #0d1117;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #58a6ff;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --error-color: #f85149;
    --success-color: #3fb950;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* Input Fields */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Auth / Layout */
#auth-view,
#app-view {
    display: none;
    padding-top: 40px;
}

.card {
    padding: 30px;
    margin-bottom: 20px;
}

/* Tabs / Navigation */
.nav-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    padding: 12px;
    z-index: 1000;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.nav-item.active {
    color: var(--accent-color);
}

/* Tracking Log Styles */
.log-item {
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
}

.log-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.log-type {
    font-weight: bold;
    text-transform: capitalize;
}

.log-item.feeding {
    border-left-color: var(--accent-color);
}

.log-item.diaper {
    border-left-color: #8b4513;
}

/* Brown */
.log-item.care {
    border-left-color: var(--success-color);
}

/* Green */
.log-item.weight {
    border-left-color: #f1e05a;
}

/* Yellow */

/* Charts */
.chart-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Log Actions */
.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--accent-color);
}

.action-btn.delete:hover {
    color: var(--error-color);
}

/* Summary Card */
.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

/* Date Filter */
#activity-date-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    outline: none;
}

#activity-date-filter:focus {
    border-color: var(--accent-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.badge.admin {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 800px;
    }
}