/* Table Stylinessss */
.wcag-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Filter Buttons Container */
.filter-buttons-container {
    display: flex;
    gap: 20px;
}

/* Download Button Container */
.download-button-container {
    text-align: right;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }

.download-button-container button {
    text-transform: uppercase;
    border: 1px solid #cbcbcb;
    background: #F6F6F6;
    color: #1a1a1a;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-family: 'Archivo', sans-serif !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 0.45px !important;
}
.dropdown button:hover,
.dropdown button:focus,
.download-button-container button:hover,
.download-button-container button:focus {
    border: 1px solid #000000 !important;
    color: white !important;
}

/* Dropdown Styling */
.dropdown button {
    background: #ffffff;
    padding: 10px 15px;
    text-transform: uppercase;
    border: 1px solid grey;
    outline: 0;
    cursor: pointer;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-family: 'Archivo', sans-serif !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 0.45px !important;
}

.dropdown button:hover {
    border: 1px solid #000000;
    color: #1a1a1a;
}

/* Default arrow (closed state) */
/* Hide all icons by default */
.icon {
    display: none;
}

/* Show the appropriate icon based on class or state */
.dropdown-toggle[aria-expanded="false"] .dropdown-arrow {
    display: inline;
    content: "▼"; /* Down arrow */
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    display: inline;
    content: "▲"; /* Up arrow */
}

.dropdown-close-button {
    position: relative;
    top: 10px;
    padding: 8px 12px;
    background-color: #f44336; /* Red for visibility */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 8px !important;
}

.dropdown-close-button:focus {
    outline: 2px solid #333; /* Accessible focus outline */
}

.dropdown-toggle.button--highlight {
    background-color: green; /* Green color for selected filters */
    color: white;
    border-radius: 2px;
}

.dropdown-toggle.button--highlight .arrow-icon {
    content: "✔";
    display: inline;
}

.dropdown-arrow{
    padding-left: 5px;
}

/* Show checkmark when button has the .button--highlight class */
/* .button--highlight .checkmark-icon {
    display: inline;
    padding-left: 0.5em;
} */


/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    color: #2641B1;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 18px;
}

.dropdown-menu--active {
    display: block;
    margin-left: auto;
}

.dropdown-menu li {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: darkgreen;
}

.dropdown-menu li label {
    font-family: 'Archivo', sans-serif;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.45px;
}

/* Table Styling */
#wcagTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Archivo', sans-serif;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.45px;
}

#wcagTable th,
#wcagTable td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
    text-align: left;
}

#wcagTable th {
    background-color: #2C3845;
    color: white;
    font-weight: bold;
}

#wcagTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Team Roles Column */
#wcagTable tbody td.team-role .role-span {
    background: #F4F5F6;
    border: 1px solid #DFE3E6;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.team-roles-column {
    width: 15%;
}

/* Base table styling */
#wcag-criteria-list {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}

#wcag-criteria-list th, #wcag-criteria-list td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

/* Table header styling */
#wcag-criteria-list thead {
    background-color: #004078;
    color: white;
}

#wcag-criteria-list th {
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Row hover effect */
#wcag-criteria-list tbody tr:hover {
    background-color: #f1f1f1;
}

/* Criteria ID and title styling */
#wcag-criteria-list td h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #333;
}

/* Input and textarea styling */
#wcag-criteria-list input[type="text"],
#wcag-criteria-list textarea,
#wcag-criteria-list input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    font-size: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#wcag-criteria-list textarea {
    min-height: 80px;
    resize: vertical;
}

/* Flex layout for top section containing title and link */
.top-section {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

/* Flex items for title and link */
.top-section .left, .top-section .right {
    flex: 1;
}

/* Bottom section for requirement */
.bottom-section {
    margin-top: 10px;
}

/* Form labels styling */
#wcag-criteria-list label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

/* Aligning input fields and labels inside top section */
.top-section .left label,
.top-section .right label,
.bottom-section label {
    font-size: 0.875rem;
}

/* Role section styling */
#wcag-criteria-list td input[type="text"],
#wcag-criteria-list td input[type="number"] {
    margin-top: 5px;
}

@media screen and (max-width: 850px) {
    .dropdown button{
        padding: 4px 6px;
        font-size: 13px !important;
    }

    .filter-buttons-container {
        display: flex;
        gap: 10px;
    }

    .download-button-container button{
        font-size: 13px !important;
        padding: 4px 6px;
    }

    #wcagTable {
        font-size: 12px; /* Slightly smaller font for better fit */
    }

    #wcagTable th,
    #wcagTable td {
        padding: 3px 6px; /* Reduced padding */
    }

    #wcagTable th {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .download-button-container button{
        font-size: 11px !important;
        padding: 4px 6px;
    }
    .dropdown button{
        font-size: 11px !important;
    }
    #wcagTable th {
        font-size: 10px;
    }

    .team-roles-column
    {
        display: none;
    }
    .team-role{
        display: none;
    }

    .requirement-container .requirement-link ,.requirement-heading-text{
        font-size: 14px !important;
    }

    .requirement-container .requirement-text{
        font-size: 13px !important;
    }

    #roleDropdown{
        display: none;
    }
    #mobilenote {
        display: block !important;
    }
}

@media screen and (max-width: 380px) {
    .download-button-container button {
        font-size: 10px !important;
        padding: 3px 5px;
    }
    .dropdown button {
        font-size: 10px !important;
    }
    #wcagTable th {
        font-size: 8px;
    }

    .requirement-container .requirement-link, .requirement-heading-text {
        font-size: 10px !important;
    }

    .requirement-container .requirement-text {
        font-size: 10px !important;
    }
}


/*Table Styline Ended */




/* CSS for Guage Filter Inside the Box */
.lawsuit_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
}

/* Ensure gauge and button are centered together */
.gauge-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center the gauge and button */
}

/* Styles for the gauge */
.gauge-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: filter 0.3s ease; /* Smooth transition when blur is removed */
}

.gauge-container.blurred {
    filter: blur(10px); /* Blur effect applied by default */
}

.gauge {
    width: 100%;
    height: auto;
}

.gauge-bg {
    fill: none;
    stroke: #ddd; /* Background arc color */
    stroke-width: 10;
}

.gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-dasharray: 126; /* Length of the arc */
    stroke-dashoffset: 126; /* Hide the fill initially */
    transition: stroke-dashoffset 0.5s ease;
}

/* Needle Base (Center of the Gauge) */
/* Needle Base (Bottom Center of the Gauge) */
.gauge-needle-base {
    fill: lightgrey; /* Dark grey circle for the needle base */
}

/* Needle (Line that rotates from the bottom) */
.gauge-needle {
    stroke: lightgrey;
    stroke-width: 3;
    transform-origin: 50px 50px; /* Origin of rotation is now the bottom of the line (y=50) */
    transform: rotate(0deg);   /* Default needle position */
    transition: transform 0.3s ease;
}

/* Arrowhead aligned exactly at the top of the needle */
.gauge-needle-arrow {
    fill: lightgrey;
    transform-origin: 50px 50px; /* The arrow also rotates from the needle base (50,50) */
    transform: rotate(0deg);   /* Default arrowhead position */
    transition: transform 0.3s ease;
}
.gauge-text {
    font-size: 0.6rem;
    fill: #333;
    font-weight: bold;
}


.gauge-value {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px; /* Adjust font size */
    font-weight: bold;
    text-align: center;
}

/* Button Styles */
.lowsuit-button {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background: none;
    background-color: none;
    color: #2B486C;
    border: none;
    border-radius: 5px;
    text-align: center;
}

.lowsuit-button:hover,
.lowsuit-button:focus {
    background: none;
    background-color: none;
    color: #2B486C;
    text-decoration: underline;
}
.requirement-container {
    margin-bottom: 10px;
}

.requirement-link ,.requirement-heading-text{
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    color: #15547C;
    text-decoration: none;
    font-weight: bold !important;
    display: block;
    margin-bottom: 10px;
}



.requirement-link:hover {
    text-decoration: underline;
}

.requirement-text {
    font-size: 17px;
    color: #333;
    margin: 0;
}

/* Dialog Overlay */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Dark background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    max-height: 95vh;
}

.dialog-close {
    background: none;
    border: none;
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
    color: #333;
    padding: 0px 10px 0px 0px  !important;
}

.dialog-close:hover,
.dialog-close:focus{
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #000;
}

.dialog-close:focus span {
    outline: 2px solid #000; /* Add focus outline to the span */
    outline-offset: 2px; /* Optional, adds space between outline and text */
}

.dialog-close span{
    font-size: 40px;
}


.dialog-close:focus {
    outline: 3px solid #004078;
}

.dialog-header {
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.dialog-header h2 {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 24px;
    margin: 0;
    color: #333;
    font-weight: 500;
}


.dialog-content {
    padding: 20px 0;
}

.dialog-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #444;
}

.dialog-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Risk Gauge and Labels Side by Side */
.risk-gauge-wrapper {
    display: flex;
    align-items: left;
    justify-content: center !important;
    gap: 20px;
    flex-wrap: wrap;
}

.risk-levels-label {
    margin-left: 20px;
    max-width: 400px;
}

.risk-levels-label h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

.risk-levels-label span {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.risk-levels-label span.high {
    color: red;
}

.risk-levels-label span.medium {
    color: orange;
}

.risk-levels-label span.low {
    color: green;
}

/* Risk Explanation Styles */
.risk-category {
    margin-top: 20px;
}

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
}

.risk-category .description {
    display: inline-block;
    vertical-align: middle;
}

.risk-category h4 {
    font-size: 16px;
    color: #333;
}

.risk-category p {
    font-size: 14px;
    color: #555;
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 15px;
    padding: 10px;
    padding-bottom: 0px !important;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.disclaimer-section h4 {
    font-size: 13px;
    margin-bottom: 5px;
    color: #444;
}

.disclaimer-section p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px !important;
    padding-bottom: 0px !important;
}

.dialog h2{
    font-weight: 100 !important;
}
/* Accessibility Enhancements */
.dialog-content a {
    color: #004078;
    text-decoration: underline;
}

.dialog-content a:focus,
.dialog-content a:hover {
    color: #00325a;
}

.dialog-content h3,
.dialog-content h4 {
    color: #222; /* Enhanced color contrast */
}

.dialog-content p,
.disclaimer-section p {
    color: #444;
}

.dialog .color-box {
    border: 1px solid #333;
}

.dialog h2,
.dialog h3,
.dialog h4 {
    font-weight: 600;
}

.description p{
    margin-top: 0px;
    padding-top: 0px;
}
.description h4{
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.lawsuit-risk-explanation .score-desc{
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}
.lawsuit-risk-explanation .course-link-text{
    margin-top: 5px;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.button_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between buttons */
    justify-content: flex-start; /* Center the buttons horizontally */
    margin: 20px 0; /* Add some vertical spacing */
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .dialog {
        max-width: 90%;
        padding: 15px;
    }

    .dialog-header h2 {
        font-size: 20px;
    }

    .dialog-content p,
    .disclaimer-section p {
        font-size: 14px;
    }

    .dialog-content h3 {
        font-size: 18px;
    }

    .risk-gauge-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .risk-levels-label {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .dialog {
        max-width: 90%;
        max-height: 80%;
        padding: 10px;
    }

    .dialog-header h2 {
        font-size: 18px !important;
    }

    .risk-gauge{
        width: 110px;
    }

    .dialog-content p,
    .disclaimer-section p {
        font-size: 12px;
    }

    .risk-levels-label {
        margin-left: 0;
    }

    .risk-gauge-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center; /* Horizontally center the content */
        align-items: center; /* Vertically center the content */
    }
    
    .guage-chart-wrapper, .risk-levels-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: left;
    }

    .risk-levels-label
    {
        max-width: 190px;
    }

    .risk-levels-label span {
        font-size: 12px;
    }

    .risk-category .description p {
        font-size: 12px;
    }

    .risk-levels-label h4{
        font-size: 14px !important;
    }

    .risk-levels-label p{
        font-size: 12px !important;
    }

    .dialog-close{
        top : -10px;
    }
    .guage-chart-wrapper
    {
        margin-top: -10px;
    }
    .risk-levels-label h4{
        font-size: 14px !important;
    }
    .dynamic-risk-value
    {
        font-size: 12px !important;
    }

    .high-risk , .medium-risk , .low-risk{
        display: flex;
        flex-direction: row;
    }
    .color-box
    {
        margin-right: 20px;
        margin-top: 10px;
    }
}

.btn-primary, .btn-secondary {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    outline: none;
    display: inline-block;
}

/* Primary button style */
.btn-primary {
    background-color: #004078;
    color: white !important;
    text-decoration: none;
    border: none;
    margin-right: 20px;
    text-decoration: none !important;
    font: inherit;
    font-size: 16px !important;
}

.btn-secondary {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
    text-decoration: none !important;
    font-size: 16px !important;
    font: inherit;
}





.scroll-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
