:root {
    --primary: #5b86e5;
    --secondary: #36d1dc;
    --accent: #ff7e5f;
    --danger: #ff4d4d;
    --warning: #ffb347;
    --success: #2ecc71;
    --light: #f8f9fa;
    --dark: #2d3436;
    --text: #2d3436;
    --gray: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: #f5f7fa;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.1"><path d="M0,50 L100,50 M50,0 L50,100"/></svg>');
    opacity: 0.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

h2 {
    color: var(--primary);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-size: 2rem;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--secondary);
}

h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.nested-list {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.nested-list li:before {
    background: var(--gray);
    width: 6px;
    height: 6px;
    top: 0.6rem;
}

.emergency-box {
    background: linear-gradient(to right, rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.05));
    border-left: 4px solid var(--danger);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: linear-gradient(to right, rgba(255, 179, 71, 0.1), rgba(255, 179, 71, 0.05));
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box {
    background: linear-gradient(to right, rgba(91, 134, 229, 0.1), rgba(91, 134, 229, 0.05));
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.success-box {
    background: linear-gradient(to right, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border-left: 4px solid var(--success);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.privacy-box {
    background: linear-gradient(to right, rgba(155, 89, 182, 0.1), rgba(155, 89, 182, 0.05));
    border-left: 4px solid #9b59b6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cause-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 3px solid var(--primary);
}

.cause-card h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.clinical-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 3px solid var(--secondary);
}

.feature-card h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
}

tr:nth-child(even) td {
    background-color: #f9f9f9;
}

tr:hover td {
    background-color: #f1f7fe;
}

.signs {
    color: var(--danger);
    font-weight: 600;
}

/* Summary Panel Styles */
.summary-icon {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.summary-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.summary-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
    transition: right 0.3s ease;
}

.summary-panel.active {
    right: 0;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.close-summary {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--danger);
}

.summary-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-section:last-child {
    border-bottom: none;
}

.red-bg {
    background: linear-gradient(to right, rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.05));
    border-left: 4px solid var(--danger);
}

.amber-bg {
    background: linear-gradient(to right, rgba(255, 179, 71, 0.1), rgba(255, 179, 71, 0.05));
    border-left: 4px solid var(--warning);
}

.green-bg {
    background: linear-gradient(to right, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border-left: 4px solid #2ecc71;
}

.method-steps {
    counter-reset: step-counter;
}

.method-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.method-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.law-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.law-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .clinical-features, .law-grid, .causes-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .summary-panel {
        width: 300px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .method-step {
        padding-left: 3.5rem;
    }
    
    .method-step::before {
        width: 2.5rem;
        height: 2.5rem;
    }
}


.diagnosis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.diagnosis-table th {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.diagnosis-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.diagnosis-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.diagnosis-table tr:hover td {
    background-color: #f1f7fe;
}

.technique {
    background: linear-gradient(to right, rgba(91, 134, 229, 0.1), rgba(91, 134, 229, 0.05));
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.technique-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}