/* Header with Apple glass effect - COLORS FROM UPLOADED FILE */
header {
    /* EXACTLY as in Pasted_Text_1753387349047.txt */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    /* padding controlled in css/main.css */
    margin-bottom: 0; /* Match design: spacing handled by body padding */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow: hidden;
}

.version-tag {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 10px;
    color: #666;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 6px;
    border-radius: 8px;
    z-index: 2;
}

.datetime {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 auto;
    text-align: center;
    min-width: 280px;
    position: relative;
    z-index: 100;
    white-space: nowrap;
}

.date-part {
    display: inline;
    font-size: 28px;
    color: #666;
    font-weight: 500;
}

.separator {
    display: inline;
    color: #666;
    margin: 0 4px;
}

.time-part {
    display: inline;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.checkboxes {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 7px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 100;
    height: 34px;
    align-items: center;
    box-sizing: border-box;
}

.checkboxes input {
    margin-right: 4px;
}

.checkboxes label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.header-controls {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 100;
}

.control-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.control-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Refresh lock button states */
.refresh-lock.unlocked {
    color: #28a745; /* Green when unlocked */
}

.refresh-lock.unlocked:hover {
    background: rgba(40, 167, 69, 0.1);
}

.refresh-lock.locked {
    color: #dc3545; /* Red when locked */
}

.refresh-lock.locked:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Progress Bar Header - COLORS FROM UPLOADED FILE */
.header-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* EXACTLY as in Pasted_Text_1753387349047.txt */
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.1), rgba(10, 132, 255, 0.1));
    z-index: 1;
    overflow: hidden;
}

.header-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* EXACTLY as in Pasted_Text_1753387349047.txt */
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.3), rgba(10, 132, 255, 0.3));
}

/* Blink animation when header progress reaches 100% */
@keyframes kpHeaderBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.header-progress-bar.blink {
    animation: kpHeaderBlink 0.8s ease-in-out infinite;
}

/* Specific override removed; spacing controlled in css/main.css */