body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}
.loading {
    display: none;
    color: #0066cc;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}
.answer-container {
    margin-top: 20px;
    border-left: 4px solid #0066cc;
    padding-left: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}
.answer-container h3 {
    color: #0066cc;
    margin-top: 0;
}
input[type="text"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}
input[type="submit"] {
    padding: 8px 16px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.checkbox-container {
    margin: 10px 0;
}
.comparison-option {
    margin-left: 30px;
    display: none;
}
.answers-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.answers-wrapper.side-by-side {
    flex-direction: row;
}
.answers-wrapper.side-by-side .answer-container {
    flex: 1;
}
.transformed-query {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    border-radius: 5px;
}

.loading-text {
    margin-top: 10px;
}

.bylaw-sidebar {
position: fixed;
top: 0;
right: -50%;
width: 50%;
height: 100vh;
background: white;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
transition: right 0.3s ease;
z-index: 1000;
}

.bylaw-sidebar.active {
    right: 0;
}

.bylaw-sidebar iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sidebar-resizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-resizer:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

body.sidebar-open .container {
    margin-right: 50%;
    transition: margin-right 0.3s ease;
}

.info-box {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.bug-report-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bug-report-btn:hover {
    background-color: #f1b0b7;
    text-decoration: none;
}

@media (max-width: 768px) {
    .bylaw-sidebar {
        display: none;
    }
    
    body.sidebar-open .container {
        margin-right: 0;
    }
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 100;
    cursor: wait;
    display: none;
}

#queryForm {
    position: relative;
}

#queryForm.submitting .form-overlay {
    display: block;
} 

/* Autocomplete styles */
.autocomplete-container {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
}

.autocomplete-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background-color: #f0f7ff;
}

.timing-info {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}

/* Provincial Laws Styles */
.secondary-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.secondary-button:hover {
    background-color: #3e8e41;
}

#provincialLawsForm {
    background-color: #f9f9f9;
}

#provincialLawsResult {
    background-color: #f0f7ff !important;
}

#provincialLawsResult h3 {
    color: #0066cc;
    margin-top: 0;
}

#provincialContent {
    line-height: 1.6;
}

#provincialContent a {
    color: #0066cc;
    text-decoration: none;
}

#provincialContent a:hover {
    text-decoration: underline;
}

#provincialSources {
    margin-top: 15px;
}

#sourcesList {
    padding-left: 20px;
}

#sourcesList li {
    margin-bottom: 5px;
}

#fetchProvincialLaws {
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#fetchProvincialLaws:hover {
    background-color: #3e8e41;
}

.error {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-bottom: 10px;
}


