:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.crumb {
    cursor: pointer;
    transition: color 0.2s;
}

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

.crumb-separator {
    margin: 0 0.5rem;
    color: #475569;
}

main {
    padding: 2rem 0;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

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

h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Masonry / Capture Cards */
.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capture-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.capture-card:hover {
    border-color: #475569;
}

.capture-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

.capture-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.capture-card:hover .capture-image {
    transform: scale(1.05);
}

.capture-info {
    padding: 1rem;
}

.capture-time {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.capture-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    display: inline-block;
    padding: 0.5rem 0;
    text-align: center;
    background: #1e293b;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

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

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

.btn.primary:hover {
    background: var(--primary-hover);
}

.loader {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem;
    color: var(--text-muted);
}

.hour-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hour-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
}

/* Login */
.login-card {
    max-width: 400px;
    margin: 4rem auto;
    background: rgba(30, 41, 59, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.login-card h2 { margin-top: 0; text-align: center; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-group input { 
    width: 100%; 
    padding: 0.75rem; 
    border-radius: 6px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    background: rgba(15, 23, 42, 0.5); 
    color: var(--text-light); 
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-error { color: #ef4444; margin-bottom: 1rem; text-align: center; min-height: 20px; }
