/* Patient Page V2 - Warm Palette */
:root {
    --primary-teal: #14B8A6;
    --primary-coral: #FB7185;
    --accent-green: #10B981;
    --bg-cream: #FFFBF5;
    --text-dark: #1F2937;
}

.patient-page {
    background: var(--bg-cream);
}

/* Sticky Header */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-teal);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-teal);
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.1);
}

.back-button:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateX(-5px);
}

.page-title h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Date Widget with Gradient */
.date-widget-section {
    margin-bottom: 3rem;
}

.date-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-coral) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.25);
    position: relative;
    overflow: hidden;
}

.date-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.date-card h2,
.date-card p {
    position: relative;
    z-index: 1;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.input-wrapper {
    position: relative;
    z-index: 1;
}

.input-wrapper label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    z-index: 1;
}

.date-input,
select.date-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.date-input:focus,
select.date-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.full-width {
    grid-column: 1 / -1;
}

/* Preparation Plan */
.preparation-plan {
    animation: fadeIn 0.6s ease-in;
}

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

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

.prep-step {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-teal);
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-green));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.step-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
}

/* Accordions */
.accordion-item {
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.15);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #F9FAFB;
}

.accordion-header .header-icon {
    margin-right: 0.75rem;
    font-size: 1.3rem;
}

.accordion-header .chevron {
    transition: transform 0.3s ease;
    color: #9CA3AF;
}

.accordion-header.active .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #F9FAFB;
}

.content-inner {
    padding: 1.5rem;
}

.allowed-header {
    color: var(--accent-green);
}

.forbidden-header {
    color: var(--primary-coral);
}

/* Timeline */
.medication-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-coral);
}

.medication-section h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.timeline-box {
    position: relative;
    padding-left: 2rem;
}

.timeline-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-teal), var(--primary-coral));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-teal);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-teal);
}

.time-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-green));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Stop Fluids Alert */
.stop-fluids-alert {
    margin-top: 2rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
    border: 3px solid #F59E0B;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.stop-fluids-alert h3 {
    color: #B45309;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Additional Info */
.additional-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

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

    .date-card {
        padding: 1.5rem;
    }

    .prep-step,
    .medication-section {
        padding: 1.5rem;
    }
}