:root {
    --primary: #fe814b;
    --secondary: #5a9bd5;
    --border-radius: 8px;
}

.dropdown-toggle::after {
    display: none;
}

html, body {
    background-color: #f8f9fa;
    height: 100%;
    overflow-x: hidden;
}

h2 {
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.header {
    background-color: white;
    border-bottom: 2px solid #dee2e6;
    padding: 10px;
}

.logout-btn {
    background-color: #fff0f0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 5px;
    color: #dc3545;
    font-size: 0.9rem;
    min-height: 32px;
}

.logout-btn:hover {
    background-color: #ffe0e0;
    color: #bd2130;
}

#logoDropdown {
    color: black;
}

.primary-text { color: var(--primary); }
.secondary-text { color: var(--secondary); }


.brand {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Upload Section */
.upload-container, .collection-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.tab-content {
    flex: 1;
    display: flex;
    height: 100%;
}

.tab-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#textInput {
    height: 100%;
}

.tab-pane.active {
    display: flex !important; /* Override Bootstrap's default display:block */
}

.tab-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(0%);
}

.tab-icon path {
    fill: #000;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drop-zone:hover {
    background-color: #e8ecf0;
}

.container-fluid {
    height: calc(100vh - 100px); /* Subtract header height */
    min-height: 500px;
}

.row {
    height: calc(100vh - 100px); /* Subtract header height */
}

.col-md-6 {
    height: calc(100vh - 100px); /* Subtract header height */
}

/* Collection Section */

#uploadTabs, .nav-item, .nav-link, .collection-header {
    height: 45px;
}

.collection-content {
    height: calc(100% - 45px);
    display: flex;
    flex-direction: column;
}

.select2-container {
    width: 100% !important;
}

.select2-container textarea {
    height: 25px !important;
}

.collection-items {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    box-shadow: inset 0 -20px 20px -20px rgba(0,0,0,0.2);
}

.collection-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-top: 1px solid #dee2e6;
    cursor: pointer;
    font-size: small;
}

.collection-item:hover {
    background-color: #e8ecf0;
}

.item-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.btn-group {
    background-color: white;
}

.btn-group .btn:hover img {
    filter: brightness(0%) invert(100%);
}

.btn-outline-danger:hover img {
    filter: brightness(0%) invert(100%);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

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

.modal-title {
    margin: 0;
    width: 100%;
}

.modal-content {
    height: auto;
    width: auto;
    margin: 100px;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    z-index: 1040;
}

button img {
    pointer-events: none;
}

li .nav-link {
    color: black;
}

li .nav-link.active {
    color: white !important;
    font-weight: bold;
    background-color: var(--secondary) !important;
}

.bg-secondary {
    color: white !important;
    background-color: var(--secondary) !important;
}

.toast {
    opacity: 1 !important;
}

.toast.success {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.toast.error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}
