/* ===================================
   DRAWER MODAL - ASOSIY STILLAR
   =================================== */

.modal-drawer {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 550px;
    height: 100vh;
    margin: 0;
    z-index: 1050;
}

.modal-drawer .modal-dialog {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.modal-drawer .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Header */
.modal-drawer .modal-header {
    flex-shrink: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-drawer .modal-title {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.modal-drawer .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-drawer .btn-close-white:hover {
    opacity: 1;
}

/* Modal Body */
.modal-drawer .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    background: #fff;
}

/* Drawer Animation */
.modal.fade .modal-drawer {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-drawer {
    transform: translateX(0);
}

/* Backdrop */
.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modal-drawer {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .modal-drawer {
        max-width: 85%;
    }

    .modal-drawer .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-drawer .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-drawer .modal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .modal-drawer {
        max-width: 100%;
    }

    .modal-drawer .modal-header {
        padding: 1rem;
    }

    .modal-drawer .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-drawer .modal-title {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.modal-drawer .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-drawer .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-drawer .modal-body::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.modal-drawer .modal-body::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
