body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f6f8fa;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.input-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.sync-status {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.sync-status.syncing {
    background-color: #fff3cd;
    color: #856404;
}

.sync-status.synced {
    background-color: #d1edff;
    color: #0969da;
}

.sync-status.error {
    background-color: #ffebee;
    color: #d1242f;
}

.form-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="date"], input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: #2ea043;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

button:hover {
    background-color: #2c974b;
}

.clear-btn {
    background-color: #cf588a;
    margin-left: 5px;
}

.clear-btn:hover {
    background-color: #b14b76;
}

.stats {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.heatmap-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    text-align: center;
}

.heatmap {
    display: inline-block;
    font-size: 12px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 12px);
    grid-template-rows: repeat(7, 12px);
    gap: 2px;
    margin-top: 10px;
    grid-auto-flow: column;
}

.day-cell {
    width: 12px;
    height: 12px;
    background-color: #ebedf0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.day-cell.level-1 { background-color: #9be9a8; }
.day-cell.level-2 { background-color: #40c463; }
.day-cell.level-3 { background-color: #30a14e; }
.day-cell.level-4 { background-color: #216e39; }

.legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 11px;
    color: #656d76;
}

.legend-item {
    width: 12px;
    height: 12px;
    margin-left: 2px;
    border-radius: 2px;
}

.month-labels {
    display: grid;
    grid-template-columns: repeat(53, 12px);
    gap: 2px;
    margin-bottom: 5px;
    font-size: 10px;
    color: #656d76;
}

.day-labels {
    position: absolute;
    left: -25px;
    top: 0;
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 2px;
    font-size: 10px;
    color: #656d76;
    text-align: right;
    width: 20px;
}

.tooltip {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.settings-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #656d76;
    text-decoration: none;
    font-size: 14px;
}

.settings-link:hover {
    color: #0969da;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.modal-header h3 {
    margin: 0;
    color: #24292f;
}

.close {
    color: #656d76;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #24292f;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #24292f;
}

.form-field input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-field input[type="text"]:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #f6f8fa;
    color: #24292f;
    border: 1px solid #d1d5da;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

.token-info {
    background-color: #f6f8fa;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #656d76;
}

.token-info a {
    color: #0969da;
    text-decoration: none;
}

.token-info a:hover {
    text-decoration: underline;
}

.year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.year-nav button {
    background-color: #f6f8fa;
    color: #24292f;
    border: 1px solid #d1d5da;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.year-nav button:hover {
    background-color: #f3f4f6;
}

.year-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.year-display {
    font-size: 20px;
    font-weight: 600;
    color: #24292f;
    min-width: 80px;
}