/* Claude Code Mac Terminal Theme - Light */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;
    background: #f5f5f5;
    color: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

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

header {
    margin-bottom: 16px;
    padding-bottom: 0px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #795548;
    margin-bottom: 8px;
}

.wip-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #999999;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.wip-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(60, 60, 60, 0.85);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    min-width: 260px;
    text-align: left;
    letter-spacing: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wip-badge:hover .wip-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.wip-check {
    color: #f0f0f0;
    font-weight: 400;
}

.wip-check::before {
    content: '✓ ';
    color: #81c784;
    font-weight: 600;
}

.wip-cross {
    color: #f0f0f0;
    font-weight: 400;
}

.wip-cross::before {
    content: '✗ ';
    color: #ef5350;
    font-weight: 600;
}

.wip-more {
    color: #f0f0f0;
    font-style: italic;
    margin-top: 4px;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    color: #666666;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
}

h3 {
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    margin-bottom: 16px;
}


.calculator-section {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.control-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 13px;
    color: #555555;
    font-weight: 500;
}

.input-field {
    background: #ffffff;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.2s;
}

/* Remove number input spinners */
.input-field[type="number"]::-webkit-inner-spin-button,
.input-field[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field[type="number"] {
    -moz-appearance: textfield;
}

/* Add padding to select dropdowns (not in advanced options/summary) */
.control-group select.input-field {
    padding-right: 32px;
}

.input-field:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

.input-field:hover {
    border-color: #0066cc;
}

.input-field::placeholder {
    color: #b0b0b0;
    opacity: 1;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
}

.unit {
    font-size: 13px;
    color: #666666;
    min-width: 30px;
}

.unit-select {
    width: 100px;
}

.generate-button {
    background: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.generate-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.generate-button:active {
    transform: translateY(0);
}

.copy-header {
    width: 60px;
    text-align: center;
    padding: 8px !important;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0066cc;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background: #f0f7ff;
    border-color: #0066cc;
    color: #0052a3;
}

.copy-button:active {
    transform: translateY(1px);
}

.copy-button svg {
    display: block;
}

.results-section {
    margin-top: 32px;
}

#schedule-table {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
}

thead {
    background: #f8f8f8;
}

th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    border-bottom: 1px solid #d0d0d0;
}

td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #e8e8e8;
    color: #1a1a1a;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f5f5f5;
}

.schedule-summary {
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #795548;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.summary-toggle {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.schedule-summary.collapsed .summary-toggle {
    transform: rotate(-90deg);
}

.summary-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.25s ease;
}

.schedule-summary.collapsed .summary-content {
    grid-template-rows: 0fr;
}

.summary-content > div {
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.schedule-summary.collapsed .summary-content > div {
    opacity: 0;
}

.schedule-summary.collapsed .summary-header {
    margin-bottom: 0;
}

.schedule-summary.collapsed .summary-header {
    margin-bottom: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.summary-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.summary-item .label {
    color: #666;
    font-weight: 500;
}

.summary-item .value {
    color: #1a1a1a;
    font-weight: 600;
}

/* Advanced Options */
.advanced-options {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
}

.advanced-header {
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    margin-bottom: 12px;
}

.advanced-toggle {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.advanced-options.collapsed .advanced-toggle {
    transform: rotate(-90deg);
}

.advanced-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.25s ease;
}

.advanced-options.collapsed .advanced-content {
    grid-template-rows: 0fr;
}

.advanced-content > div {
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.advanced-options.collapsed .advanced-content > div {
    opacity: 0;
}

.advanced-options.collapsed .advanced-header {
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    h1 {
        white-space: nowrap;
        font-size: 24px;
    }

    .calculator-section {
        padding: 16px;
    }

    .control-row {
        grid-template-columns: 1fr;
    }

    #schedule-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 100%;
        font-size: 11px;
    }

    th, td {
        padding: 6px 4px;
        white-space: nowrap;
        font-size: 11px;
    }

    th:first-child, td:first-child {
        font-size: 10px;
    }

    .copy-header {
        width: 40px;
    }

    .copy-button {
        padding: 4px;
    }

    .copy-button svg {
        width: 14px;
        height: 14px;
    }

    .schedule-summary {
        padding: 12px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}
