/* Custom styles for Rearticulate.me */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    color: #0d6efd;
}

.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: auto;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

#result-section {
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
    padding-top: 2rem;
}

#result-text {
    min-height: 100px;
    white-space: pre-wrap;
}

.btn-primary {
    padding: 0.75rem 2rem;
}

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
    z-index: 1001;
}

.select-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.select-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Re-enable pointer events when shown */
}

.selected-option {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-option:hover {
    border-color: #0d6efd;
}

.selected-option.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
}

.options-list.show {
    display: block;
}

.option-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.option-item:hover {
    background-color: #f8f9fa;
}

.option-item i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    min-height: 2.5rem;
    margin-top: 0.5rem;
}

/* Icon colors for different styles */
.bi-briefcase { color: #0d6efd; }
.bi-chat-dots { color: #20c997; }
.bi-book { color: #6f42c1; }
.bi-pencil { color: #fd7e14; }
.bi-code-square { color: #0dcaf0; }
.bi-graph-up-arrow { color: #198754; }
.bi-check2-circle { color: #0dcaf0; }
.bi-file-earmark-text { color: #6610f2; }
.bi-shield-check { color: #198754; }
#char-counter {
    font-weight: 600;
    transition: color 0.2s ease;
}

#char-counter.text-danger {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}