/* General styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Heading styles */
h2, h3, h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

h2 {
    font-size: 28px;
    color: #2c3e50;  /* Purple color to match your theme */
    border-bottom: 2px solid #800080;
    padding-bottom: 10px;
}

h3 {
    font-size: 24px;
    color: #9932CC;  /* A lighter purple */
}

h4 {
    font-size: 20px;
    color: #8B008B;  /* Another shade of purple */
}

/* General table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

/* Table header styling */
table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
    padding: 12px;
    border-bottom: 2px solid #ddd;
}

/* Table cell styling */
table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Alternate row background color */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect for rows */
table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive table */
@media screen and (max-width: 600px) {
    table {
        border: 0;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    table td {
        display: block;
        text-align: right;
        font-size: 14px;
        border-bottom: 1px solid #ddd;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
}

.navbar h1 {
    font-family: 'Roboto', sans-serif; /* Title font */
    font-weight: 700; /* Bold */
    font-size: 21px; /* Adjust the font size as needed */
    margin-top: 10px;
}

/* General styles for dropdowns and inputs */
.dcc-dropdown, .dcc-input {
    margin-bottom: 10px;
}

/* Custom styles for the navigation bar */
.navbar {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .left-section {
    display: flex;
    align-items: center;
}

.navbar .right-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar img {
    height: 60px;
    margin-right: 20px;
}

.navbar h1 {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

.navbar a {
    font-family: 'Roboto', sans-serif;
    margin-right: 20px;
}

/* Spacer to avoid content overlap with the fixed navigation bar */
.spacer {
    height: 100px;
}

/* Custom styles for the input query section */
.input-query-container {
    background-color: #f9f9f9;  /* Light background color */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
    width: 20%; /* Ensure width is respected */
    flex: 0 0 30%; /* Make sure it doesn't grow or shrink */
    display: inline-block; /* Ensure it stays as inline-block */
}

.expander {
    border: 2px solid #7A00E6; /* Border color */
    background-color: white;   /* Background color */
    color: black;              /* Text color */
    padding: 10px 20px;        /* Optional: Adjust padding */
    font-size: 16px;           /* Optional: Adjust font size */
    border-radius: 5px;        /* Optional: Adjust border radius */
    cursor: pointer;           /* Optional: Pointer cursor on hover */
    transition: background-color 0.3s, color 0.3s; /* Optional: Smooth transition */
    width: 100%;
}

.expander:hover {
    border: 2px solid #7A00E6;
    background-color: #7A00E6; /* Optional: Change background color on hover */
    color: white;              /* Optional: Change text color on hover */
}

.search-button {
    border: 2px solid #7A00E6; /* Border color */
    background-color: #7A00E6;   /* Background color */
    color: white;              /* Text color */
    padding: 10px 20px;        /* Optional: Adjust padding */
    font-size: 16px;           /* Optional: Adjust font size */
    border-radius: 5px;        /* Optional: Adjust border radius */
    cursor: pointer;           /* Optional: Pointer cursor on hover */
    transition: background-color 0.3s, color 0.3s; /* Optional: Smooth transition */
    flex: 0 0 20%; 
}

.search-button:hover {
    border: 2px solid #7A00E6;
    background-color: #430779;
    color: white;  
}

.generate-report-button {
    border: 2px solid #7A00E6; /* Border color */
    background-color: #7A00E6;   /* Background color */
    color: white;              /* Text color */
    padding: 10px 20px;        /* Optional: Adjust padding */
    font-size: 16px;           /* Optional: Adjust font size */
    border-radius: 5px;        /* Optional: Adjust border radius */
    cursor: pointer;           /* Optional: Pointer cursor on hover */
    transition: background-color 0.3s, color 0.3s; /* Optional: Smooth transition */
    flex: 0 0 20%; 
}

.generate-report-button:hover {
    border: 2px solid #7A00E6;
    background-color: #430779;
    color: white;  
}
.descriptive-report-button {
    border: 2px solid #7A00E6; /* Border color */
    background-color: #7A00E6;   /* Background color */
    color: white;              /* Text color */
    padding: 10px 20px;        /* Optional: Adjust padding */
    font-size: 16px;           /* Optional: Adjust font size */
    border-radius: 5px;        /* Optional: Adjust border radius */
    cursor: pointer;           /* Optional: Pointer cursor on hover */
    transition: background-color 0.3s, color 0.3s; /* Optional: Smooth transition */
    flex: 0 0 20%; 
}

.descriptive-report-button:hover {
    border: 2px solid #7A00E6;
    background-color: #430779;
    color: white;  
}

.back-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #7A00E6;  /* Purple background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    text-decoration: none;
    margin: 10px;
    position: relative;
}

.back-button:hover {
    background-color: #430779; /* Darker purple on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button::after {
    content: ' ←'; /* Arrow indicator */
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 100%; /* Ensure it doesn't overflow */
    overflow-y: auto; /* Add scrolling if needed */
}

.button-style {
    width: 100%;
    background-color: #7A00E6;
    border-color: #7A00E6;
}

/* Responsive styles */
@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.8rem;
    }

    .page-description {
        font-size: 1.1rem;
        max-width: 80%;
    }

    .arrow-buttons-wrapper {
        flex-direction: row;
    }

    .arrow {
        display: block;
        width: 20px;
        height: 100%; /* Full height */
        max-height: 500px; /* Maximum height */
        background-color: #888;
        position: relative;
    }

    .arrow::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -15px;
        width: 0;
        height: 0;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 30px solid #888;
    }

    .button-style {
        width: 200px;
    }
}

@media (min-width: 1024px) {
    .navbar-title {
        font-size: 1.5rem;
    }
}

/* Height-based media queries */
@media (max-height: 600px) {
    .main-content {
        min-height: auto;
    }

    .left-container, .right-container {
        min-height: 250px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1.3rem;
    }

    .page-description {
        font-size: 0.9rem;
    }
}

/* Styling for matching question headers */
h5.matching-header, h6.matching-header {
    background-color: #ffe6fb;
    color: #bb248e;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 15px;
    position: relative;
}

/* Target Dash Core Components Dropdown when disabled */
.Select-control.is-disabled {
    background-color: #e9ecef !important; /* Light gray background */
    opacity: 1 !important; /* Ensure full opacity */
    cursor: not-allowed !important; /* Change cursor to indicate non-interactivity */
}

/* Optional: Style the placeholder text */
.Select-placeholder {
    color: #6c757d !important; /* Bootstrap's secondary color */
}

/*css for home.py
/* First Section with Background Image */
.background-section {
    position: relative;
    height: 500px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.background-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/background1.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(60%) contrast(120%) blur(1px); /* Apply the filters only to the background image */
    z-index: -1; /* Ensures the image stays behind the text content */
}

.background-section h1 {
    margin-top: 60px;
    font-weight: bold;
}

.background-section p {
    font-size: 1em;
    max-width: 800px; /* Set a max width */
    margin: 0 auto; /* Center align */
    z-index: 1;
}

.background-section button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #7A00E6;  /* Purple background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    text-decoration: none;
    margin: 10px;
    position: relative;
    margin-top: 80px;
}


/* Second Section Image */
.second-section img {
    width: 100%;
    padding: 20px;
}

/* Third Section Placeholder */
.third-section {
    text-align: center;
    padding: 20px;
}

/* Form Section */
.form-section {
    text-align: center;
    padding: 20px;
}

.form-section input {
    display: block; /* Each input on a new line */
    width: 100%; /* Full width */
    max-width: 400px; /* Limit width to 400px */
    margin: 10px auto; /* Center align and spacing */
    padding: 12px; /* Padding for input */
    font-size: 1em;
    border-radius: 15px; /* Rounded corners */
    border: 1px solid #ddd;
}

.form-section button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #7A00E6;  /* Purple background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    text-decoration: none;
    margin: 10px;
    position: relative;
}
