/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.navbar {
    background-color: #0d2330;
}

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

.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #0d2330;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 15px;
}

.card-body {
    padding: 20px;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 500;
}

.btn-primary {
    background-color: #1c3d5a;
    border-color: #1c3d5a;
}

.btn-primary:hover {
    background-color: #16304a;
    border-color: #16304a;
}

.btn-link {
    color: #fff;
}

.btn-link:hover {
    color: #fff;
    text-decoration: underline;
}

.alert-container {
    margin-top: 20px;
}

/* Specific Components */
.status-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.25em 0.5em;
    font-size: 75%;
}

/* Login Page */
.logo-container {
    background-color: rgb(17, 35, 49);
    padding: 20px;
    border-radius: 10px;
}

/* Message Board */
.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    max-width: 75%;
    word-wrap: break-word;
}

.chat-bubble-left {
    background-color: #e8f5e9;
    align-self: flex-start;
}

.chat-bubble-right {
    background-color: #d1e7dd;
    align-self: flex-end;
}

.chat-bubble.reply {
    margin-left: 30px;
    background-color: #f1f0f0;
}

.chat-bubble-form {
    display: none;
    margin-top: 10px;
}

.reply-section {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #ddd;
}

.reply-button {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

/* Utility Classes */
.text-wrap {
    word-wrap: break-word;
    white-space: normal;
}

.text-dark {
    color: #333;
}

.text-muted {
    color: #6c757d;
}

/* Badge Styles */
.badge-success {
    background-color: #28a745;
}

.badge-primary {
    background-color: #007bff;
}

.badge-warning {
    background-color: #ffc107;
}

.badge-orange {
    background-color: #fd7e14;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-secondary {
    background-color: #6c757d;
}

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

/* Accordion Styles */
.accordion .card-header {
    background-color: #1c3d5a;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion .card-header h2 {
    margin-bottom: 0;
}

.accordion .card-header .btn-link {
    color: #fff;
    text-decoration: none;
}

.accordion .card-header .btn-link:hover {
    color: #fff;
    text-decoration: underline;
}

.accordion .card-body {
    padding: 1.25rem;
}

/* Table Hover Effect */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form Styles */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

h1,
h2 {
    margin-bottom: 20px;
}

/* Button Groups */
.btn-group {
    display: flex;
    justify-content: flex-end;
}

.btn-group .btn {
    margin-left: 5px;
}

/* Custom Forms */
.form-control-label {
    margin-bottom: 0.5rem;
}

.form-control-file {
    margin-bottom: 1rem;
}

.btn-outline-danger {
    border: none;
    background: none;
    color: #dc3545;
}

.btn-outline-danger:hover {
    color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Analytics Page */
.card-header {
    background-color: #1c3d5a;
    color: white;
    font-weight: bold;
    border-bottom: none;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: #1c3d5a;
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
}

.btn-close {
    background-color: white;
    border: none;
    font-size: 1.25rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.container {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Select2 Styles */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    color: #fff;
    margin: 0.125rem;
    padding: 0.25rem 0.5rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 0.25rem;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
    color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    padding: 0.375rem;
    border-radius: 0.25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
    opacity: 0.8;
}