/* Runway Calculator Specific Styles */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.back-link:hover {
    color: #333;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

.input-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #007bff;
}

.input-help {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

.calculate-button {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.results-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.runway-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.runway-months {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.runway-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breakdown {
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: bold;
}

.scenario-toggles {
    margin-bottom: 2rem;
}

.toggle-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.scenario-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.action-plan {
    margin-top: 2rem;
}

.action-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.action-message.critical {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.action-message.warning {
    background: #fffaf0;
    border-left: 4px solid #dd6b20;
}

.action-message.healthy {
    background: #f0fff4;
    border-left: 4px solid #38a169;
}

.burn-rate-context {
    background: #edf2f7;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.educational-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.pro-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.pro-tips li {
    margin-bottom: 0.5rem;
}

/* The Sort Specific Styles */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.questions-container {
    position: relative;
    min-height: 400px;
}

.question {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.question-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.options-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card label {
    display: block;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.option-card label:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.option-card input[type="radio"]:checked+label {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.option-card label strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.option-card label span {
    color: #666;
    line-height: 1.4;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn.primary {
    background: #007bff;
    color: white;
}

.nav-btn.primary:hover:not(:disabled) {
    background: #0056b3;
    border-color: #0056b3;
}

.nav-btn.primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

.nav-btn.secondary {
    background: white;
    color: #007bff;
}

.nav-btn.secondary:hover:not(:disabled) {
    background: #f8f9fa;
}

.nav-btn.secondary:disabled {
    color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

/* Results Styles */
.protocol-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.protocol-header {
    padding: 2rem;
    color: white;
}

.protocol-header.emergency {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.protocol-header.maker {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.protocol-header.operator {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.protocol-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.protocol-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.protocol-content {
    padding: 2rem;
}

.protocol-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.protocol-steps {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.protocol-steps h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.protocol-steps ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.protocol-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.protocol-steps strong {
    color: #333;
}

.protocol-insight {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.protocol-insight h4 {
    color: #333;
    margin-bottom: 0.75rem;
}

.protocol-insight p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.action-btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.action-btn.secondary {
    background: white;
    border-color: #6c757d;
    color: #6c757d;
}

.action-btn.secondary:hover {
    background: #f8f9fa;
    border-color: #495057;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .protocol-header h2 {
        font-size: 1.5rem;
    }
}

/* Tools Index Specific Styles */
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-4px);
}

.tool-card.coming-soon {
    opacity: 0.7;
    border-style: dashed;
}

.tool-card.coming-soon:hover {
    border-color: #6c757d;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.15);
    transform: translateY(-2px);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-card.coming-soon .tool-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-content h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.tool-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    justify-content: center;
}

.tool-link:hover:not(.disabled) {
    background: #0056b3;
    transform: translateX(4px);
}

.tool-link.disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.status-badge {
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Usage Guide */
.usage-guide {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 4rem;
}

.usage-guide h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.guide-steps {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Book Integration */
.book-integration {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
}

.integration-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.integration-text h2 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.integration-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.integration-text ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.integration-text li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.integration-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-button.primary {
    background: white;
    color: #667eea;
}

.cta-button.primary:hover {
    background: transparent;
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

.integration-visual {
    display: flex;
    justify-content: center;
}

.book-cover-placeholder {
    perspective: 1000px;
}

.book-cover {
    display: flex;
    transform: rotateY(-10deg);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: rotateY(-5deg);
}

.book-spine {
    width: 20px;
    height: 160px;
    background: #333;
    border-radius: 2px 0 0 2px;
}

.book-front {
    width: 120px;
    height: 160px;
    background: white;
    border-radius: 0 4px 4px 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.book-title {
    font-weight: bold;
    color: #333;
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.book-subtitle {
    color: #666;
    font-size: 0.5rem;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .integration-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .integration-actions {
        justify-content: center;
    }

    .guide-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }

    .tools-container {
        padding: 1rem;
    }

    .usage-guide,
    .book-integration {
        padding: 2rem 1.5rem;
    }
}