/* Reset & Basic Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f6f8;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    margin-top: 0;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #007bff;
    font-weight: 600;
}

/* Controls */
.controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.unit-switch label {
    margin-left: 15px;
    cursor: pointer;
}

/* Current Time Section */
.current-time-display {
    text-align: center;
    margin-bottom: 15px;
}

.big-time {
    font-size: 32px;
    font-weight: bold;
    font-family: monospace;
    display: block;
    margin-bottom: 5px;
}

.big-timestamp {
    font-size: 20px;
    color: #666;
    font-family: monospace;
    display: block;
}

.pause-btn-container {
    text-align: center;
    margin-bottom: 15px;
}

button {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #f0f0f0;
}

button.primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

button.primary:hover {
    background-color: #0056b3;
}

.zeros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    font-size: 14px;
}

.zero-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.zero-item .label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.zero-item .val {
    font-family: monospace;
    font-weight: bold;
}

/* Conversion Section */
.converter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.converter-row input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    flex-grow: 1;
}

.arrow {
    font-weight: bold;
    color: #999;
}

/* Calculator Section */
.calc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.calc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Calendar Section */
.calendar-container {
    max-width: 400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.calendar-cell.header {
    font-weight: bold;
    background: #f4f4f4;
    cursor: default;
}

.calendar-cell:not(.header):not(.empty):hover {
    background-color: #e6f7ff;
}

.calendar-cell.today {
    background-color: #e6f7ff;
    border-color: #1890ff;
    font-weight: bold;
}

.calendar-cell.active-selected {
    background-color: #1890ff;
    color: white;
}

.quick-set-btns {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Base Time Zeros Display */
.calc-zeros-info {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
}

.calc-zero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.calc-zero-row:last-child {
    border-bottom: none;
}

.calc-zero-label {
    color: #666;
}

.calc-zero-val {
    font-family: monospace;
    font-weight: bold;
    color: #007bff;
    margin: 0 10px;
}

.use-btn {
    font-size: 12px;
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 3px;
}

.use-btn:hover {
    background: #e0e0e0;
}
