body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e6f3ff;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

nav {
    background-color: #1a5f7a;
    color: #fff;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ddd;
}

h1,
h2,
h3 {
    color: #003366;
}

form {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="file"],
input[type="text"],
input[type="password"] {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* New styles for login input fields */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 250px;
    max-width: 100%;
}

/* New styles for register input fields */
.register-form input[type="text"],
.register-form input[type="password"] {
    width: 250px;
    max-width: 100%;
}

button {
    display: inline-block;
    padding: 10px 15px;
    background: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #2980b9;
}

#loading,
#error-message,
#message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

#loading {
    background-color: #f0f8ff;
}

#error-message {
    background-color: #ffeded;
    color: #d8000c;
}

#message {
    background-color: #e8f5e9;
    color: #4caf50;
}

.hidden {
    display: none;
}

#document-status {
    margin-top: 20px;
}

.status-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-item h3 {
    margin-top: 0;
    color: #003366;
}

.status-item.processing {
    background-color: #e6f3ff;
}

.status-item.completed {
    background-color: #f0f8ff;
}

.status-item.failed {
    background-color: #ffeded;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#result-container {
    background-color: #f0f8ff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#result-container h2 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#result-container table {
    width: 100%;
    border-collapse: collapse;
}

#result-container th,
#result-container td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#result-container th {
    background-color: #e6f3ff;
    font-weight: bold;
    color: #003366;
}

.generated-checklist {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checklist-section {
    margin-bottom: 30px;
}

.checklist-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.checklist-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.checklist-section li {
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
    font-size: 0.95em;
}

.checklist-section li:hover {
    background-color: #e9ecef;
}

#result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#result-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Improved message notifications */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 45px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-text {
    flex: 1;
}

.message-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

select option[data-has-document="false"] {
    color: #999;
    font-style: italic;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #f0f8ff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #3498db;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.close {
    color: #3498db;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #2980b9;
    text-decoration: none;
    cursor: pointer;
}

#api-usage-content table {
    width: 100%;
    border-collapse: collapse;
}

#api-usage-content th,
#api-usage-content td {
    border: 1px solid #3498db;
    padding: 8px;
    text-align: left;
}

#api-usage-content th {
    background-color: #e6f3ff;
    font-weight: bold;
    color: #003366;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #f0f8ff;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-button:hover {
    background-color: #e6f3ff;
}

.tab-button.active {
    background-color: #3498db;
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.chat-message .formatted-content {
    margin-top: 10px;
}

.chat-message h2 {
    color: #2c3e50;
    font-size: 1.3em;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
}

.chat-message h3 {
    color: #34495e;
    font-size: 1.1em;
    margin: 12px 0 8px 0;
}

.chat-message ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-message li {
    margin: 5px 0;
    line-height: 1.4;
}

.chat-message strong {
    color: #2c3e50;
}

.formatted-content {
    line-height: 1.6;
}

.chat-message:nth-child(odd) {
    background-color: #f1f8ff;
}

.chat-message strong:first-child {
    color: #3498db;
}

.export-buttons {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.export-buttons h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-group .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn i {
    font-size: 1.1em;
}

.template-actions {
    margin-top: 10px;
}

#chat-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#chat-form {
    display: flex;
}

#chat-input {
    flex-grow: 1;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}

/* Styles for the document type selector */
select[name="document_type"] {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 16px;
}

/* Adjust the upload form layout */
#upload-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#upload-form input[type="file"],
#upload-form select,
#upload-form button {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

/* Style for the chat messages */
.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f0f8ff;
}

.chat-message strong {
    color: #003366;
}

/* Admin Panel Styles */
.admin-panel {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-panel h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.upload-section,
.documents-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group select {
    background-color: white;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead {
    background-color: #f8f9fa;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
    color: #2c3e50;
}

/* Button Styles */
button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #2980b9;
}

button.delete-btn {
    background-color: #e74c3c;
}

button.delete-btn:hover {
    background-color: #c0392b;
}

.generated-checklist {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checklist-section {
    margin-bottom: 20px;
}

.checklist-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.checklist-section ul {
    list-style-type: none;
    padding-left: 0;
}

.checklist-section li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
}

#result-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#result-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading and Message Styles */
.loading {
    text-align: center;
    padding: 20px;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.mt-2 {
    margin-top: 10px;
}

/* Message Container Styles */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.message.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.message.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checklist Editor Styles */
.checklist-editor {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.checklist-item {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
}

.checklist-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-row>.form-group {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

.checklist-toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-checkbox {
    position: absolute;
    right: 15px;
    top: 15px;
    transform: scale(1.2);
}

.form-control.completed {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.last-modified {
    font-size: 0.9em;
    color: #6c757d;
}

/* Status indicators */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-not-started {
    background-color: #f8d7da;
    color: #721c24;
}

.status-in-progress {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-not-applicable {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Risk level indicators */
.risk-high {
    background-color: #dc3545;
    color: white;
}

.risk-medium {
    background-color: #ffc107;
    color: black;
}

.risk-low {
    background-color: #28a745;
    color: white;
}

/* Evidence required section */
.evidence-required {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Review cycle indicator */
.review-cycle {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    background-color: #e9ecef;
    color: #495057;
}

/* Control objective formatting */
.regulation-control-objective {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

/* Framework Selection Styles */
.framework-selection {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Table Styles */
.table {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Progress Bar Styles */
.progress {
    height: 1.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin: 0;
}

.progress-bar {
    background-color: #28a745;
    color: white;
    text-align: center;
    line-height: 1.5rem;
    font-size: 0.875rem;
    transition: width 0.3s ease;
}

/* Button Group Styles */
.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-group .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Empty State Styles */
.text-center {
    color: #6c757d;
    padding: 2rem;
    font-style: italic;
}

/* Add these styles to your existing CSS */
.table td[data-field="regulation_control_objective"] {
    font-weight: 600;
    background-color: #f8f9fa;
    width: 200px;
}

.table td[data-field="control_requirement"] {
    width: 400px;
}

.control-header {
    font-weight: 600;
    color: #2c3e50;
}

.control-detail {
    margin-left: 10px;
    display: block;
}

.view-mode .control-requirement-content {
    white-space: pre-line;
}

.save-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.save-btn .fa-spinner {
    margin-right: 4px;
}

/* Status colors */
.status-not-started {
    color: #dc3545;
}

.status-in-progress {
    color: #ffc107;
}

.status-completed {
    color: #28a745;
}

/* Risk level colors */
.risk-high {
    color: #dc3545;
}

.risk-medium {
    color: #ffc107;
}

.risk-low {
    color: #28a745;
}

/* Admin Section Styles */
.admin-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.upload-form {
    max-width: 800px;
}

.custom-file {
    margin-bottom: 1rem;
}

.custom-file-input {
    cursor: pointer;
}

.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-file-input:lang(en)~.custom-file-label::after {
    content: "Browse";
}

.documents-list {
    margin-top: 2rem;
}

.documents-list h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.table {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td,
.table th {
    padding: 12px;
    vertical-align: middle;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-sm i {
    margin-right: 4px;
}

/* Framework Selection Styles */
#compliance-framework option:disabled {
    color: #999;
    font-style: italic;
    background-color: #f8f9fa;
}

.framework-selection {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#generate-checklist {
    transition: opacity 0.3s ease;
}

#generate-checklist:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#generate-checklist:disabled:hover {
    opacity: 0.6;
}

/* Add tooltip for disabled button */
#generate-checklist[title] {
    position: relative;
}

#generate-checklist[title]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
}

/* Upload Progress Styles */
.progress {
    height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #007bff;
    transition: width .6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

/* Framework Select Styles */
#compliance-framework option:disabled {
    color: #999;
    font-style: italic;
    background-color: #f8f9fa;
}

/* Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    z-index: 1050;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .progress {
        min-width: 100px;
    }
}

/* Checklist Table Styles */
.table td {
    vertical-align: middle;
    padding: 0.5rem;
}

.table td textarea {
    min-height: 38px;
    resize: vertical;
}

.edit-mode {
    margin: 0;
    display: block;
    width: 100%;
}

.view-mode {
    padding: 0.375rem 0;
    min-height: 38px;
    display: block;
}

.d-none {
    display: none !important;
}

/* Custom checkbox styling */
.custom-control {
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: #007bff;
    background-color: #007bff;
}

/* Button group styles */
.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Status colors */
.status-not-started {
    color: #dc3545;
}

.status-in-progress {
    color: #ffc107;
}

.status-completed {
    color: #28a745;
}

.status-not-applicable {
    color: #6c757d;
}

/* Risk level colors */
.risk-high {
    color: #dc3545;
}

.risk-medium {
    color: #ffc107;
}

.risk-low {
    color: #28a745;
}

/* Upload Progress Styles */
.upload-progress {
    margin: 15px 0;
}

.progress {
    height: 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #007bff;
    transition: width .6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

/* Framework Select Styles */
#compliance-framework option:disabled {
    color: #999;
    font-style: italic;
    background-color: #f8f9fa;
}

/* Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 1050;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button States */
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* File Input Styles */
.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 90px;
}

/* Add to your existing style.css file */

#new-item-template .edit-mode {
    display: block;
}

.edit-mode input,
.edit-mode select,
.edit-mode textarea {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.edit-mode textarea {
    min-height: 60px;
    resize: vertical;
}

.btn-group .save-new-btn,
.btn-group .cancel-new-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.save-new-btn {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.save-new-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
}

.tab-button.active {
    background: #3498db;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Chat Styles */
#chat-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #f5f5f5;
}

/* Update in style.css */
#chat-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex-grow: 1;
    min-height: 40px;
    /* Increased height */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.input-group {
    width: 100%;
    display: flex;
    gap: 10px;
}

.chat-framework-selector {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.chat-framework-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.chat-framework-selector label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #495057;
}

#chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
    margin-bottom: 20px;
}

.chat-interface {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    height: 600px;
    /* Adjust height as needed */
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 400px;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: #e3f2fd;
    margin-left: auto;
}

.chat-message.bot {
    background: #f5f5f5;
    margin-right: auto;
}

#chat-form {
    display: flex;
    gap: 10px;
}

#chat-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.chat-framework-selector {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.chat-framework-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group-append .btn {
    height: 100%;
    padding: 10px 20px;
}

.generation-progress-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.progress-header h5 {
    color: #2c3e50;
    font-weight: 600;
}

#progress-percentage {
    font-weight: bold;
    color: #3498db;
}

.progress {
    background-color: #f0f3f6;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    background-color: #3498db;
    transition: width 0.5s ease;
}

#progress-status {
    font-size: 0.9rem;
    font-weight: 500;
}

#generation-steps {
    padding: 10px 0;
}

.step-item {
    margin: 8px 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #95a5a6;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.step-item.completed .step-indicator {
    background-color: #2ecc71;
}

.step-item.active .step-indicator {
    background-color: #3498db;
}

.step-text {
    font-size: 0.9rem;
    color: #34495e;
}

/* Add these to your existing styles */
.completed-item {
    background-color: #f8fff8 !important;
}

.completed-item td {
    opacity: 0.8;
}

.custom-control-input:not(:disabled) {
    cursor: pointer;
}

.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style for checkbox in edit mode */
.edit-mode .custom-control-input:not(:disabled) {
    cursor: pointer;
}

/* Hover effect for checkbox row */
tr:hover .custom-control-input:not(:disabled)+.custom-control-label::before {
    border-color: #007bff;
}

/* My Checklists Page Styles */
.my-checklists-header {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-section .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checklist-item .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.checklist-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checklist-stats {
    font-size: 0.875rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #3498db;
}

.checklist-item .card-title {
    color: #2c3e50;
    margin-bottom: 5px;
}

.checklist-item .card-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    margin-right: 2rem;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link i {
    margin-right: 8px;
}

/* Username and Logout styles */
.navbar-nav .nav-item:last-child .nav-link {
    margin-left: 10px;
}

.navbar-nav .nav-item span.nav-link {
    cursor: default;
}

.navbar-nav .nav-item span.nav-link:hover {
    background-color: transparent;
}

/* Username and Logout specific styles */
.user-name {
    color: rgba(255, 255, 255, 0.9) !important;
    padding-right: 0.5rem !important;
}

.user-name:hover {
    background-color: transparent !important;
}

.logout-link {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-left: 10px;
}

.logout-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}


/* Keep existing navbar styles... */

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-item {
        margin: 5px 0;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-item {
        margin: 5px 0;
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        margin-bottom: 10px;
    }

    #chat-form {
        flex-direction: column;
    }

    #chat-input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.analysis-results {
    margin-top: 2rem;
    padding: 1rem;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.card-header h4 {
    margin: 0;
    color: #333;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.badge {
    padding: 0.5em 1em;
    font-size: 0.85em;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Priority colors */
.priority-high {
    color: #dc3545;
}

.priority-medium {
    color: #ffc107;
}

.priority-low {
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Custom styling for tabs */
.custom-tabs .nav-link {
    background-color: #9e9e9e !important;
    /* Light grey background */
    color: #ffffff !important;
    /* White text */
    border: 1px solid #9e9e9e !important;
    border-radius: 4px !important;
    margin-right: 5px !important;
    padding: 10px 20px !important;
}

.custom-tabs .nav-link:hover {
    background-color: #3949ab !important;
    /* Light blue on hover */
    border-color: #3949ab !important;
}

.custom-tabs .nav-link.active {
    background-color: #1a237e !important;
    /* Dark blue when active */
    border-color: #1a237e !important;
    color: #ffffff !important;
}

/* Remove default bottom border */
.custom-tabs.nav-tabs {
    border-bottom: none !important;
}