/* Activity Timeline page-specific styles */

/* Page-specific header color */
header h1::before {
    background: #22d3ee;
}

.app {
    height: 90vh;
}

/* Narrower sidebar for activity page */
.sidebar {
    width: 110px;
    padding: 8px;
}

/* Download Button */
.download-btn {
    background: var(--sleep);
    color: var(--bg-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn:hover {
    opacity: 0.9;
}

/* Filter Item Checkbox Overrides */
.filter-item {
    gap: 6px;
}

.filter-item .checkbox {
    border: 2px solid var(--text-secondary);
    transition: all 0.2s;
}

.filter-item input:checked + .checkbox {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.filter-item input:checked + .checkbox::after {
    content: '\2713';
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: bold;
}

.filter-item .color-dot {
    width: 10px;
    height: 10px;
}

.filter-item span {
    font-size: 11px;
}

/* Legend Overrides */
.legend {
    margin-top: 12px;
}

.legend-item {
    gap: 6px;
    padding: 2px 0;
    font-size: 10px;
}

.legend-item .color-dot {
    width: 8px;
    height: 8px;
}

/* Timeline Container */
.timeline-container {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Time Labels */
.time-labels {
    z-index: 10;
    background: var(--bg-dark);
    width: 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.time-labels .header-spacer {
    height: 24px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--grid-line);
}

.time-labels-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.time-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    font-size: 9px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--grid-line);
}

/* Days Container */
.days-container {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.day-column {
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid var(--grid-line);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.day-header {
    height: 24px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--grid-line);
    font-size: 8px;
    color: var(--text-secondary);
    position: relative;
    z-index: 5;
    gap: 0;
    overflow: visible;
}

.day-header .day-name {
    font-weight: 600;
    color: var(--text-primary);
}

.day-header .day-name:not(:empty) {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: var(--bg-sidebar);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 0 0 3px var(--bg-sidebar);
}

.day-header .day-date {
    font-size: 8px;
    display: none;
}

.day-content {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hour-row {
    flex: 1;
    border-bottom: 1px solid var(--grid-line);
}

.time-marker-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dotted var(--text-secondary);
    z-index: 2;
    pointer-events: none;
}

/* Activities */
.activity {
    position: absolute;
    border-radius: 2px;
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.activity:hover {
    transform: scale(1.2);
    z-index: 10;
}

.activity.sleep {
    background: var(--sleep);
    width: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.activity.sleep:hover {
    transform: translateX(-50%) scale(1.1);
}

.activity.feed-bottle {
    background: var(--feed-bottle);
    width: 4px;
    height: 4px;
}

.activity.feed-breast {
    background: var(--feed-breast);
    width: 4px;
    height: 4px;
}

.activity.diaper-pee {
    background: var(--diaper-pee);
    width: 3px;
    height: 3px;
}

.activity.diaper-poo {
    background: var(--diaper-poo);
    width: 3px;
    height: 3px;
}

.activity.diaper-both {
    background: var(--diaper-both);
    width: 3px;
    height: 3px;
}

.activity.solids {
    background: var(--solids);
    width: 4px;
    height: 4px;
}

.activity.pump {
    background: var(--pump);
    width: 3px;
    height: 3px;
}

.activity.growth {
    background: var(--growth);
    width: 3px;
    height: 3px;
}

.activity.potty {
    background: var(--potty);
    width: 3px;
    height: 3px;
}

.activity.hidden {
    display: none;
}

/* Tooltip Details */
.tooltip-time {
    margin-bottom: 4px;
}

.tooltip-details {
    color: var(--text-secondary);
}

/* Upload Screen */
.upload-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.upload-screen.hidden {
    display: none;
}

.upload-box {
    border: 2px dashed var(--grid-line);
    border-radius: 12px;
    padding: 60px 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--sleep);
    background: rgba(77, 212, 228, 0.05);
}

.upload-box h2 {
    margin-bottom: 12px;
}

.upload-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-box input {
    display: none;
}

.btn {
    background: var(--sleep);
    color: var(--bg-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.load-demo {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.load-demo a {
    color: var(--sleep);
    text-decoration: none;
    cursor: pointer;
}

.load-demo a:hover {
    text-decoration: underline;
}
