/* Case Detail Page Specific Styles */

/* Case Header */
.case-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.case-number {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: white;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Action Bar */
.action-bar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.btn-action.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-action.primary:hover {
    background: #1e3a8a;
}

/* Main Layout */
.case-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    min-width: 0;
}

/* Section Card */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 64, 175, 0.05));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Section */
.summary-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* Outcome Section */
.outcome-banner {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.outcome-banner.defendant {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.outcome-banner.partial {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.outcome-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.outcome-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--success);
}

.outcome-banner.defendant .outcome-icon {
    color: var(--danger);
}

.outcome-banner.partial .outcome-icon {
    color: var(--warning);
}

.outcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
}

.outcome-banner.defendant .outcome-title {
    color: #991b1b;
}

.outcome-banner.partial .outcome-title {
    color: #92400e;
}

.outcome-subtitle {
    font-size: 0.9rem;
    color: #166534;
    opacity: 0.8;
}

.outcome-description {
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.6;
}

.outcome-banner.defendant .outcome-description {
    color: #991b1b;
}

.outcome-banner.partial .outcome-description {
    color: #92400e;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.info-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Parties List */
.party-list {
    margin-bottom: 1.5rem;
}

.party-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.party-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.party-details {
    font-size: 0.875rem;
    color: #64748b;
}

/* Relief Items */
/**
 * Relief Items Styling
 * Matches the paragraph--case-relief.html.twig template structure
 */

/* Relief Item Container */
.relief-item {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  transition: all 0.2s ease;
}

.relief-item:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Relief Header (Type + Badge) */
.relief-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

/* Relief Type (Title) */
.relief-type {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.4;
  flex: 1;
}

/* Relief Outcome Badge */
.relief-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badge color variants based on outcome */
.relief-badge.granted {
  background: #dcfce7;
  color: #166534;
}

.relief-badge.refused {
  background: #fee2e2;
  color: #991b1b;
}

.relief-badge.partial {
  background: #fef3c7;
  color: #92400e;
}

/* Fallback for other badge types */
.relief-badge.pending {
  background: #e0e7ff;
  color: #3730a3;
}

/* Relief Description */
.relief-description {
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.relief-description p {
  margin-bottom: 0.5rem;
}

.relief-description p:last-child {
  margin-bottom: 0;
}

/* Relief Evidence */
.relief-evidence {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-style: italic;
  line-height: 1.6;
}

.relief-evidence::before {
  content: "📋 ";
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .relief-item {
    padding: 1rem;
  }
  
  .relief-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .relief-type {
    font-size: 1rem;
  }
  
  .relief-badge {
    align-self: flex-start;
  }
}

/* Print styles */
@media print {
  .relief-item {
    border-left-width: 2px;
    page-break-inside: avoid;
  }
  
  .relief-item:hover {
    background: #f8fafc;
    box-shadow: none;
  }
}
/**
 * Relief Items CSS - For exact template structure
 * File: relief-items.css
 */

/* Relief Item Container */
.relief-item {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #2563eb;
}

/* Relief Header */
.relief-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Relief Field (Label + Value wrapper) */
.relief-field {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

/* Full width relief field */
.relief-field--full {
  flex-direction: column;
  gap: 0.5rem;
}

/* Field Label */
.field-label {
  font-weight: 700;
  color: #64748b;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Field Value */
.field-value {
  color: #1e293b;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Relief Type Value */
.field-value.relief-type {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
}

/* Relief Badge */
.field-value.relief-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.relief-badge.granted {
  background: #dcfce7;
  color: #166534;
}

.relief-badge.refused {
  background: #fee2e2;
  color: #991b1b;
}

.relief-badge.partial {
  background: #fef3c7;
  color: #92400e;
}

/* Relief Description */
.field-value.relief-description {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Relief Evidence */
.field-value.relief-evidence {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
  .relief-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .relief-field {
    flex-direction: column;
    gap: 0.25rem;
  }
}
/* Document List */
.document-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.document-ref {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.document-side {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
}

.document-type {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.document-relevance {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Evidence Quote */
.evidence-quote {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dark);
    font-style: italic;
    position: relative;
}

.evidence-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}
/**
 * Case Document Items CSS
 * File: document-items.css
 */

/* Document Item Container */
.document-item {
  padding: 1.25rem;
  background: #fefce8;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #ca8a04;
}

/* Document Header */
.document-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Document Field (Label + Value wrapper) */
.document-field {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

/* Full width document field */
.document-field--full {
  flex-direction: column;
  gap: 0.5rem;
}

/* Field Label */
.document-field .field-label {
  font-weight: 700;
  color: #78350f;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Field Value */
.document-field .field-value {
  color: #292524;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Document Type Value */
.field-value.document-type {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
}

/* Document Side Value */
.field-value.document-side {
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
}

/* Document Relevance */
.field-value.document-relevance {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

/* Document Reference */
.field-value.document-reference {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #78350f;
  border: 1px solid #fde68a;
  font-style: italic;
}

.field-value.document-reference::before {
  content: "📎 ";
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .document-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .document-field {
    flex-direction: column;
    gap: 0.25rem;
  }
}
/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Quick Facts */
.quick-fact {
    display: flex;
    align-items: start;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.fact-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.fact-content {
    flex: 1;
}

.fact-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.fact-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Similar Cases */
.similar-case {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.similar-case:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.similar-case-title {
    font-size: 0.875rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.similarity-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tags */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.entity {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Tabs */
.custom-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.custom-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.custom-tab:hover {
    color: var(--primary);
}

.custom-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Alert Box */
.alert-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-box.info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.alert-box.warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-content {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .case-title {
        font-size: 1.25rem;
    }

    .case-meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar, .action-bar, .sidebar-column {
        display: none;
    }

    .case-content {
        grid-template-columns: 1fr;
    }

    .section-card {
        page-break-inside: avoid;
    }
}