/* ============================================
   SLIDEOUT PANELS - UNIVERSAL STYLES
   ============================================ */

/* Slideout Overlay - Backdrop */
.slideout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slideout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slideout Container */
.slideout-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    background-color: #2D2A28;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slideout-container.active {
    transform: translateX(0);
}

/* Slideout Header */
.slideout-container .slideout-header {
    flex-shrink: 0;
    padding: 20px;
    background-color: #3A3530;
    border-bottom: 1px solid #4A4540;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slideout-container .slideout-header h5 {
    margin: 0;
    color: #39FF14;
    font-weight: 600;
    font-size: 1.1rem;
}

.slideout-container .slideout-header .btn-close {
    color: #B87333;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.slideout-container .slideout-header .btn-close:hover {
    opacity: 1;
    color: #D4A574;
}

/* Slideout Body */
.slideout-container .slideout-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #E0E0E0;
}

/* Scrollbar styling for slideout body */
.slideout-container .slideout-body::-webkit-scrollbar {
    width: 8px;
}

.slideout-container .slideout-body::-webkit-scrollbar-track {
    background: #3A3530;
}

.slideout-container .slideout-body::-webkit-scrollbar-thumb {
    background: #B87333;
    border-radius: 4px;
}

.slideout-container .slideout-body::-webkit-scrollbar-thumb:hover {
    background: #D4A574;
}

/* Form elements in slideout */
.slideout-container .form-label {
    color: #B87333;
    font-weight: 500;
    margin-bottom: 8px;
}

.slideout-container .form-control,
.slideout-container .form-select {
    background-color: #4A4540;
    border-color: #3A3530;
    color: #E0E0E0;
}

.slideout-container .form-control:focus,
.slideout-container .form-select:focus {
    background-color: #4A4540;
    border-color: #B87333;
    color: #E0E0E0;
    box-shadow: 0 0 0 0.2rem rgba(184, 115, 51, 0.25);
}

.slideout-container .form-control::placeholder {
    color: #B0B0B0;
}

/* Input group styling */
.slideout-container .input-group-text {
    background-color: #4A4540;
    border-color: #3A3530;
    color: #B87333;
}

/* Buttons in slideout */
.slideout-container .btn {
    transition: all 0.2s ease;
}

.slideout-container .btn-primary {
    background-color: #39FF14;
    border-color: #39FF14;
    color: #000;
}

.slideout-container .btn-primary:hover {
    background-color: #2FCC0F;
    border-color: #2FCC0F;
}

.slideout-container .btn-outline-secondary {
    color: #B87333;
    border-color: #B87333;
}

.slideout-container .btn-outline-secondary:hover {
    background-color: #B87333;
    border-color: #B87333;
    color: #2D2A28;
}

/* Sections in slideout */
.slideout-container .section-title {
    color: #39FF14;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3A3530;
}

.slideout-container .section-title:first-child {
    margin-top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .slideout-container {
        width: 100%;
    }
}

