/* Reset and base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #111;
}

/* Form controls */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    height: 36px;
}

/* Main layout */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.top-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.modulation-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modulation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bottom-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Slot visualization */
.slot-format-section {
    margin: 20px 0;
}

.slot-visualization {
    display: flex;
    gap: 4px;
    margin: 20px 0;
    justify-content: center;
}

.slot-block {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border-radius: 4px;
}

.slot-block.downlink { background-color: #0066cc; }
.slot-block.uplink { background-color: #00cc66; }
.slot-block.flexible { background-color: #ff9900; }

/* Slot stats */
.slot-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    font-size: 14px;
}

/* Results table */

/* Keeps the wide results table scrollable inside its own box so the page
   body never scrolls horizontally on a phone. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

#resultsTable {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 14px;
}

#resultsTable th {
    background-color: #0066cc;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

#resultsTable td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

#resultsTable tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Timing information */
.timing-info {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* Six stat tiles side by side are unreadable below ~900px; step down to
   three, then two, rather than letting them squeeze. */
@media (max-width: 900px) {
    .timing-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .timing-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.timing-box {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* Assumptions section */
.assumptions-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.assumptions-section h2 {
    font-size: 20px;
    color: #111;
    margin-bottom: 20px;
}

.assumptions-section h3 {
    font-size: 16px;
    color: #333;
    margin: 25px 0 15px;
}

.assumptions-section ul {
    margin: 0;
    padding-left: 20px;
}

.assumptions-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #444;
}

.assumptions-section ul ul {
    margin-top: 8px;
}

.assumptions-section ul ul li {
    margin-bottom: 4px;
    color: #666;
}

/* Previous styles remain the same */

/* Print button styles */
.print-section {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 30px;
}

.print-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.print-button:hover {
    background-color: #0052a3;
}

.print-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Hide elements from capture */
.no-capture {
    display: block !important; /* Show in UI */
}

/* When capturing, html2canvas will only capture .capture-content */
.capture-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
