/* ===================================
   PATIENT MANAGEMENT PAGE STYLES
   =================================== */

.patient-hero {
    background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 50%, #2BFF88 100%);
}

.patient-management-section {
    padding: 100px 0;
    background: var(--secondary-color);
}

/* Management Module */
.management-module {
    margin-bottom: 80px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.module-header {
    padding: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 32px;
}

.module-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.module-title-wrapper h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-title-wrapper p {
    font-size: 18px;
    opacity: 0.95;
}

.module-content {
    padding: 48px;
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.strategy-card {
    background: var(--secondary-color);
    padding: 32px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.strategy-number {
    position: absolute;
    top: -15px;
    left: 24px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.strategy-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 16px;
    color: var(--text-primary);
}

.strategy-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.example-box {
    padding: 16px;
    background: var(--white);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.example-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

/* Key Principles */
.key-principles {
    padding: 32px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    color: var(--white);
}

.key-principles h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.key-principles ul {
    list-style: none;
    padding: 0;
}

.key-principles li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.key-principles li:last-child {
    border-bottom: none;
}

.key-principles li i {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Acceptance Framework */
.acceptance-framework {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.framework-step {
    position: relative;
    padding-left: 100px;
}

.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.framework-step h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.framework-step > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.tip-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: 15px;
    color: #856404;
    font-weight: 500;
}

.tip-highlight i {
    font-size: 24px;
    color: #ffc107;
    flex-shrink: 0;
}

/* Options Table */
.options-table {
    margin-top: 20px;
}

.option-row {
    display: flex;
    padding: 16px;
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.option-row:last-child {
    margin-bottom: 0;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
}

.option-desc {
    color: var(--text-secondary);
}

/* Value Points */
.value-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 12px;
}

.value-item i {
    font-size: 32px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.value-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Financial Script */
.financial-script {
    padding: 24px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    margin-top: 20px;
}

.financial-script strong {
    display: block;
    margin-bottom: 12px;
    color: #155724;
    font-size: 16px;
}

.financial-script p {
    font-size: 15px;
    color: #155724;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* Urgency Examples */
.urgency-examples {
    margin-top: 20px;
}

.good-example,
.bad-example {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.good-example {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.bad-example {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.badge.good {
    background: #28a745;
    color: white;
}

.badge.bad {
    background: #dc3545;
    color: white;
}

.good-example p,
.bad-example p {
    margin: 0;
    font-size: 15px;
}

.good-example p {
    color: #155724;
}

.bad-example p {
    color: #721c24;
}

/* Complaint Framework */
.complaint-framework {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.complaint-principle {
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 16px;
}

.complaint-principle h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.learn-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.learn-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.letter {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.learn-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.learn-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Common Scenarios */
.common-scenarios {
    margin-top: 32px;
}

.common-scenarios h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.scenario-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.scenario-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-size: 16px;
}

.scenario-response {
    padding: 24px;
}

.scenario-response strong {
    display: block;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
}

.scenario-response ol {
    padding-left: 20px;
}

.scenario-response li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Prevention Tips */
.prevention-tips {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    border-radius: 16px;
    color: var(--white);
}

.prevention-tips h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prevention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.prevention-item {
    text-align: center;
}

.prevention-item i {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.prevention-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.prevention-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Best Practices Section */
.best-practices-section {
    margin-top: 80px;
    padding: 80px 48px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.practice-item {
    text-align: center;
    padding: 32px;
    background: var(--secondary-color);
    border-radius: 16px;
    transition: var(--transition);
}

.practice-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.practice-item i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.practice-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.practice-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .module-content {
        padding: 32px 24px;
    }

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

    .framework-step {
        padding-left: 0;
        padding-top: 90px;
    }

    .step-icon {
        left: 50%;
        transform: translateX(-50%);
    }

    .value-points {
        grid-template-columns: 1fr;
    }

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

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

    .complaint-principle {
        padding: 24px;
    }
}
