:root {
    --primary: #1e40af;
    --light: #f0f9ff;
    --border: #e2e8f0;
    --text: #1e293b;
    --gray: #64748b;
    --hover: #dbeafe;
    --completed: #10b981;
    --active: #f59e0b;
    --transition: all 0.15s ease;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.case-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.case-number {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.case-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.meta-label {
    font-weight: 500;
    color: var(--gray);
}

.meta-value {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.act-summaries {
    display: block;
    margin-top: 0.5rem;
}

.act-summary {
    text-align: start;
    color: var(--text);
}

.status-completed {
    background: #ecfdf5;
    color: var(--completed);
}

.status-active {
    background: #fffbeb;
    color: var(--active);
}

.case-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    flex: 0 0 40%;
    font-weight: 500;
    color: var(--gray);
}

.info-value {
    flex: 1;
    padding-left: 0.5rem;
}

.participants-list, .persons-list, .events-list, .appeals-list, .sheets-list, .complaints-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.participant-card, .person-card, .event-card, .appeal-card, .sheet-card, .complaint-card {
    background: var(--light);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--primary);
}

.participant-header, .person-header, .appeal-header, .sheet-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.participant-type, .person-status, .appeal-type {
    font-weight: 600;
    color: var(--primary);
}

.appeal-date, .sheet-date, .complaint-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.participant-details, .person-details, .appeal-content, .sheet-content, .complaint-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 500;
    color: var(--gray);
    margin-right: 0.5rem;
}

.detail-value {
    flex: 1;
}

.event-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.event-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text);
}

.event-detail {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.sub-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.sub-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.case-footer {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.footer-text {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion) {
    * {
        transition: none !important;
    }
}