/* cortiplan.css */

/* Estilos específicos para las fases */
.phase-block {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.phase-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    /* Slight lift on hover */
}

.phase-block legend {
    background: #3498db;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Reduction group (inline inputs) */
.reduction-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background-color: #f8fbfe;
    /* Light blue accent background */
    padding: 1rem;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}

.reduction-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    /* Override general label margin */
    white-space: nowrap;
}

.reduction-group input {
    margin-bottom: 0 !important;
    /* Override general input margin */
    width: 70px !important;
}

/* Phase Controls */
.phase-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.button.secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.button.secondary:hover {
    background-color: #7f8c8d;
}

/* Results Summary Box */
.summary-box {
    background: #e8f6f3;
    /* Light green/teal for success/results */
    border: 1px solid #d1f2eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-box p {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.summary-box strong {
    color: #16a085;
}

/* Calendar Schedule List */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list li:nth-child(even) {
    background-color: #fafafa;
}

.schedule-list .date-col {
    font-weight: 500;
    color: #2c3e50;
}

.schedule-list .dose-col {
    font-weight: bold;
    color: #e74c3c;
    /* Red for prednisone dose */
}

.schedule-list .dose-col.zero {
    color: #27ae60;
    /* Green for 0mg (finished) */
}

/* Copy Buttons */
.copy-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.copy-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.1s;
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-btn.primary {
    background-color: #2ecc71;
    color: white;
}

.copy-btn.primary:hover {
    background-color: #27ae60;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .reduction-group {
        flex-direction: column;
        align-items: stretch;
    }

    .reduction-group label {
        justify-content: space-between;
    }
}