/* ============================================
   Legal Case Details - Modern Design
   ============================================ */

/* Custom Layout Classes (replacing Bootstrap) */
.legal-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.legal-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.legal-full-width {
    width: 100%;
}

.legal-flex {
    display: flex;
}

.legal-flex-wrap {
    flex-wrap: wrap;
}

.legal-flex-center {
    align-items: center;
}

.legal-block {
    display: block;
}

.legal-text-right {
    text-align: right;
}

.legal-text-left {
    text-align: left;
}

/* Spacing Classes */
.legal-mt-1 {
    margin-top: 0.25rem;
}

.legal-mt-2 {
    margin-top: 0.5rem;
}

.legal-mt-3 {
    margin-top: 1rem;
}

.legal-mt-4 {
    margin-top: 1.5rem;
}

.legal-mt-5 {
    margin-top: 3rem;
}

.legal-mb-1 {
    margin-bottom: 0.25rem;
}

.legal-mb-2 {
    margin-bottom: 0.5rem;
}

.legal-mb-3 {
    margin-bottom: 1rem;
}

.legal-mb-4 {
    margin-bottom: 1.5rem;
}

.legal-ml-2 {
    margin-left: 0.5rem;
}

.legal-mr-2 {
    margin-right: 0.5rem;
}

.legal-m-0 {
    margin: 0;
}

.legal-p-2 {
    padding: 0.5rem;
}

.legal-p-3 {
    padding: 1rem;
}

.legal-section-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #051c38;
    --primary-light: #e8f0fe;
    --primary-dark: #0d3b8c;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

/* Global Styles */
.global_boxshadow {
    box-shadow: var(--shadow-md);
}

.border-radiusdiv {
    border-radius: var(--border-radius);
}

.global_bgWhite {
    background: var(--bg-primary);
}
/* Banner wrapper */
.legalcase-banner {
    width: 100%;
    padding: 30px 15px;
    background: #051c38;
    border-bottom: 1px solid #e5e7eb;
}

    /* Center form container */
    .legalcase-banner .form-outline {
        padding: 25px 30px;
    }

    /* Heading */
    .legalcase-banner h1 {
        margin-bottom: 18px;
        font-size: 22px;
        font-weight: 600;
        color: #1f2937;
        letter-spacing: 0.4px;
    }

        .legalcase-banner h1 i {
            font-style: normal;
            color: #fff;
        }

/* Search input */
#inpRespondent_PetitionerSearch {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    #inpRespondent_PetitionerSearch::placeholder {
        color: #9ca3af;
    }

    #inpRespondent_PetitionerSearch:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

/* Court type radio container */
.court-flex {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

    /* Radio label */
    .court-flex label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        background: #f9fafb;
        transition: all 0.2s ease;
    }

    /* Hide default radio */
    .court-flex input[type="radio"] {
        appearance: none;
        width: 14px;
        height: 14px;
        border: 2px solid #9ca3af;
        border-radius: 50%;
        position: relative;
        cursor: pointer;
    }

        /* Custom radio checked state */
        .court-flex input[type="radio"]:checked {
            border-color: #2563eb;
        }

            .court-flex input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                top: 3px;
                left: 3px;
                width: 6px;
                height: 6px;
                background: #2563eb;
                border-radius: 50%;
            }

    /* Highlight selected label */
    .court-flex label:has(input:checked) {
        background: #eff6ff;
        border-color: #2563eb;
        color: #1d4ed8;
    }

    /* Hover effect */
    .court-flex label:hover {
        background: #f3f4f6;
    }


/* Case Header Section */
.case-top {
    margin-bottom: 26px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    color: #000;
}


    .case-top h2 {
        font-size: 1.5rem;
        text-align: left;
        color: #202020;
        margin: 0;
        font-weight: 600;
        line-height: 1.4;
    }

        .case-top h2 span {
            font-size: 0.875rem;
            font-weight: 400;
            opacity: 0.9;
            display: inline-block;
            padding: 0 8px;
        }

/* Section Cards */
.center-leagletails1 {
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

    .center-leagletails1:hover {
        box-shadow: var(--shadow-lg);
    }

    .center-leagletails1 h2 {
        font-size: 1.125rem;
        color: var(--text-primary);
        font-weight: 600;
        text-align: left;
        margin: 0;
        padding: 15px;
        padding-bottom: 12px;
        border-bottom: 1px solid #ddd;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .center-leagletails1 h2 i {
            font-style: normal;
        }

/* Container holding both tables */
.case-table-flex {
    display: flex;
    gap: 20px;
    padding: 15px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Individual table card */
.case-detail-table {
    width: 100%;
    padding: 15px;
    flex: 1;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

    /* Table rows */
    .case-detail-table tr {
        transition: background-color 0.2s ease;
    }

        .case-detail-table tr td {
            border-bottom: 1px solid #eef0f3;
        }

    /* Cells */
    .case-detail-table td {
        padding: 12px 14px;
        vertical-align: middle;
    }

        /* Label column */
        .case-detail-table td:first-child {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: 0.3px;
        }

        /* Value column */
        .case-detail-table td:last-child {
            text-align: right;
            white-space: nowrap;
            font-size: 0.875rem;
            color: var(--text-primary);
            margin-bottom: 0;
            line-height: 1.6;
        }

/* SVG icon styling */
.svg-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #4b5563;
}

/* Hover effect */
.case-detail-table tr:hover {
    background-color: #f9fafb;
}


.petition-item .svg-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.final-order-table .svg-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
}

/* Petitioners & Respondents Section */
.case-table-Petitioners {
    background-color: var(--bg-secondary);
    padding: 15px;
    margin: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.petition-flex {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

    .petition-flex:last-child {
        border-bottom: none;
    }

    .petition-flex .petition-item {
        width: 180px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding-top: 2px;
    }

    .petition-flex .petition-item-right {
        flex: 1;
        min-width: 0;
    }

.petition-item-right p {
    font-size: 0.875rem;
    text-align: left;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.6;
}

    .petition-item-right p span {
        font-size: 0.8125rem;
        cursor: pointer;
        color: #163e92;
        font-weight: 600;
        transition: var(--transition);
    }

        .petition-item-right p span:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.casetype112 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    border: none !important;
    background: transparent;
    margin-bottom: 0;
    padding: 0 !important;
}

.casetype11 {
    font-size: 0.8125rem;
    font-weight: normal;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0;
}

/* Order Details Section */
.order-detail-no {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    margin: 15px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius);
}

    .order-detail-no .info-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .order-detail-no .info-icon svg {
            width: 20px;
            height: 20px;
            color: #666;
        }

    .order-detail-no h3 {
        font-size: 0.9375rem !important;
        margin: 0 0 4px 0;
        color: var(--text-primary);
        font-weight: 600;
    }

    .order-detail-no p {
        color: var(--text-secondary);
        font-size: 0.8125rem;
        margin: 0;
        line-height: 1.5;
    }

/* Final Order Table */
.final-order-table {
    width: 100%;
    margin: 12px 0;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .final-order-table tr td {
        padding: 12px 16px !important;
        color: var(--text-primary);
        text-align: left;
        border: 0;
        font-size: 0.875rem;
        background: transparent;
    }

    .final-order-table tr:first-child td {
        background: var(--bg-tertiary);
        font-weight: 600;
    }

.order-text1 p {
    font-size: 0.8125rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Similar Cases Section */
.similar-case-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    padding: 15px;
}

    .similar-case-flex li {
        background: var(--bg-secondary);
        text-align: center;
        border-radius: var(--border-radius);
        padding: 24px 16px;
        border: 1px solid var(--border-color);
        transition: var(--transition);
    }

        .similar-case-flex li:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-color);
        }

        .similar-case-flex li a {
            text-decoration: none;
            display: block;
        }

        .similar-case-flex li .svg-icon {
            width: 48px;
            height: 48px;
            color: var(--primary-color);
            opacity: 0.8;
            margin-bottom: 12px;
        }

        .similar-case-flex li p {
            font-size: 0.875rem;
            color: var(--text-primary);
            margin-bottom: 0;
            text-align: center;
            font-weight: 500;
        }

        .similar-case-flex li i {
            display: block;
            padding: 8px 0;
            font-size: 0.75rem;
            color: var(--text-muted);
            font-style: normal;
        }

/* FAQ Section */
.legal-faqs {
    margin: 40px auto;
    padding: 0 16px;
    width: 75%;
}

.legal-faq-title {
    text-align: center;
    margin-bottom: 40px;
}

.legal-faqs h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-primary);
}

.legal-faqs .para {
    margin-top: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.legal-faqs-bx {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-que-ans {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    overflow: hidden;
    margin-top: 12px;
    transition: var(--transition);
}

    .faq-que-ans .faq-ques {
        cursor: pointer;
        list-style: none;
        padding: 16px 20px;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-secondary);
        transition: var(--transition);
    }

        .faq-que-ans .faq-ques:hover {
            background: var(--primary-light);
        }

    .faq-que-ans p {
        margin: 0;
        padding: 16px 20px;
        color: var(--text-secondary);
        font-size: 0.9375rem;
        line-height: 1.7;
    }

/* Toggle Button Styles */
.toggleback09o {
    border: 0;
    background: var(--bg-primary);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

    .toggleback09o:last-of-type {
        border: 0;
    }

    .toggleback09o:hover {
        background: var(--bg-secondary);
    }

    .toggleback09o.active {
        background: var(--primary-light);
    }

        .toggleback09o.active i {
            transform: rotate(180deg);
        }

/* Popup Styles */
.petition-popup-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    gap: 16px;
}

    .petition-popup-flex .petition-item {
        width: 48%;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .petition-popup-flex .petition-popup-right {
        width: 48%;
    }

.order-detail-popup {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

    .order-detail-popup table {
        width: 48% !important;
    }

        .order-detail-popup table th {
            padding-left: 0 !important;
            font-weight: 600;
            color: var(--text-primary);
        }

        .order-detail-popup table tr th,
        .order-detail-popup table tr td {
            padding: 10px 12px 10px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 0.875rem;
        }

/* Scroll Container */
.legal-popup-scroll {
    overflow-y: auto;
    max-height: 600px;
    overflow-x: hidden;
}

    .legal-popup-scroll::-webkit-scrollbar {
        width: 6px !important;
    }

    .legal-popup-scroll::-webkit-scrollbar-track {
        background: var(--bg-tertiary) !important;
        border-radius: 3px;
    }

    .legal-popup-scroll::-webkit-scrollbar-thumb {
        background: var(--text-muted);
        border-radius: 3px;
    }

        .legal-popup-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

/* Document Link Styles */
.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 8px;
}

    .doc-link:hover {
        color: var(--primary-dark);
    }

    .doc-link .svg-icon {
        width: 16px;
        height: 16px;
    }

/* Show More/Less Link */
.show-more-link {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    margin-top: 4px;
    transition: var(--transition);
}

    .show-more-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Order Details Wrapper */
.order-details-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Order Row */
.order-row {
    display: flex;
    width: 225px;
    color: var(--text-primary);
}

/* Order Date Cell */
.order-date-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Order Detail Text */
.order-detail-txt p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
}

/* Similar Cases Title */
.similar-cases-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .similar-cases-title i {
        font-style: normal;
    }

    .similar-cases-title svg {
        width: 20px;
        height: 20px;
        color: var(--primary-color);
    }

/* Similar Case Icon */
.similar-case-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    opacity: 0.7;
    margin: 0 auto 12px;
    display: block;
}

/* Similar Case Content */
.similar-case-content {
    padding: 12px 0;
}

/* Text Content */
.text-content {
    display: inline-block;
    color: var(--text-primary);
}

/* Hidden Content */
.hidden-content {
    display: none;
    overflow: hidden;
}

/* Order Text Content */
.order-text-content {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* VS Separator */
.vs-separator {
    display: block;
    padding: 0 5px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: normal;
}

/* Page Container */
.legal-page-container {
    margin-top: 55px;
}

/* Title Icon */
.title-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .status-badge.disposed {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.active {
        background: #dbeafe;
        color: #1e40af;
    }

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeSlide 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .case-table-flex {
        grid-template-columns: 1fr;
    }

    .similar-case-flex {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-faqs {
        width: 90%;
    }
}

@media (min-width: 320px) and (max-width: 767px) {


    .case-top h2 {
        font-size: 1.125rem;
    }

    .center-leagletails1 {
        padding: 16px;
    }

    .case-table-flex {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .similar-case-flex {
        grid-template-columns: 1fr;
    }

        .similar-case-flex li {
            padding: 16px;
        }

    .petition-flex .petition-item {
        width: 100%;
        margin-bottom: 8px;
    }

    .petition-flex .petition-item-right {
        width: 100%;
    }

    .petition-flex {
        flex-direction: column;
    }

    .order-detail-popup table {
        width: 100% !important;
    }

    .petition-popup-flex {
        flex-direction: column;
    }

        .petition-popup-flex .petition-item,
        .petition-popup-flex .petition-popup-right {
            width: 100%;
        }

    .legal-faqs {
        width: 100%;
        padding: 0 12px;
    }

        .legal-faqs h3 {
            font-size: 1.5rem;
        }
}

@media (min-width: 320px) and (max-width: 411px) {
    .order-detail-txt {
        width: 100% !important;
        overflow-x: auto;
        display: block;
    }
}
