.navigation-drawer {
    position: fixed;
    z-index: 1;
    width: 0%;
    height: 100vh;
    right: 0;
    top: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bs-gray-300);
    transition: 0.3s;
    box-shadow: -1px 0 5px lightgray;
}

@media (max-width: 600px) {
    .navigation-drawer {
        position: fixed;
        z-index: 1;
        width: 100%;
        height: 100vh;
        right: 0;
        top: 0;
        padding-top: 60px;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--bs-gray-300);
        transition: 0.3s;
        box-shadow: -1px 0 5px lightgray;
    }

    .navbar-user-name {
        margin-right: 30px;
    }
}

.navigation-drawer div {
    border-radius: 0;
}

.navigation-drawer-toggle {
    cursor: pointer;
}

.navigation-drawer-side-content {
    padding-right: 20%;
    transition: padding-right 0.3s;
}

@media (max-width: 600px) {
    .navigation-drawer-toggle {
        cursor: pointer;
        position: fixed;
        z-index: 10;
        right: 0;
        top: 15px;
    }
    .navbar-app {
        background-color: black; !important;
        box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);;
    }
    .navigation-drawer-side-content {
        padding-right: 100%;
        transition: padding-right 0.3s;
    }
}

.list-group-item {
    border: none;
    border-radius: 8px 8px 8px 8px;
}

.list-group {
    border-radius: 8px;
}

.material-icons {
    font-family: 'Material Icons',sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

@media (max-width: 600px) {
    .material-icons {
        font-family: 'Material Icons',sans-serif;
        font-weight: normal;
        font-style: normal;
        font-size: 20px;  /* Preferred icon size */
        display: inline-block;
        line-height: 1;
        text-transform: none;
        letter-spacing: normal;
        word-wrap: normal;
        white-space: nowrap;
        direction: ltr;

        /* Support for all WebKit browsers. */
        -webkit-font-smoothing: antialiased;
        /* Support for Safari and Chrome. */
        text-rendering: optimizeLegibility;

        /* Support for Firefox. */
        -moz-osx-font-smoothing: grayscale;

        /* Support for IE. */
        font-feature-settings: 'liga';
    }
}

/* Pagination buttons - RTL layout */
/* First button (اول) - rightmost, rounded on right side */
.pagination-first-btn {
    border-radius: 0 10px 10px 0 !important;
}

/* Previous button (صفحه قبل) - square, remove left border to prevent double border with first button */
.pagination-previous-btn {
    border-radius: 0 !important;
    border-left: none !important;
    margin-right: -1px !important;
}

/* Next button (صفحه بعد) - square */
.pagination-next-btn {
    border-radius: 0 !important;
}

/* Last button (آخر) - leftmost, rounded on left side */
.pagination-last-btn {
    border-radius: 10px 0 0 10px !important;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://example.com/MaterialIcons-Regular.eot); /* For IE6-8 */
    src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(https://example.com/MaterialIcons-Regular.woff2) format('woff2'),
    url(https://example.com/MaterialIcons-Regular.woff) format('woff'),
    url(https://example.com/MaterialIcons-Regular.ttf) format('truetype');
}

.form-rounded {
    border-radius: 20px 20px;
    margin-left: 200px;
    margin-right: 200px;
    padding-top: 20px;
    padding-bottom: 40px;
    background-color: rgba(255, 193, 7, 0.7);
}

@media (max-width: 600px) {
    .form-rounded {
        border-radius: 16px 16px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 10px;
        padding-bottom: 20px;
        background-color: rgba(255, 193, 7, 0.7);
    }
}

/* The container <div> - needed to position the searchable dropdown content */
.searchable-dropdown {
    position: relative;
    display: inline-block;
    background-color: white;
}

.searchable-dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Searchable Dropdown Content (Hidden by Default) */
.searchable-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bs-white);
    min-width: 230px;
    border: 1px solid var(--bs-light);
    z-index: 1;
}

/* The searchable dropdown search field */
.searchable-dropdown-input {
    box-sizing: border-box;
    font-size: 16px;
    padding: 14px 20px 12px 45px;
    border: none;
    border-bottom: 1px solid var(--bs-light);
}

.searchable-dropdown-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .searchable-dropdown-content {
        display: none;
        position: absolute;
        background-color: var(--bs-white);
        min-width: auto;
        border: 1px solid var(--bs-light);
        z-index: 1;
    }

    .searchable-dropdown-input {
        box-sizing: border-box;
        font-size: 16px;
        padding: 10px 16px 8px 34px;
        border: none;
        border-bottom: 1px solid var(--bs-light);
    }

    .searchable-dropdown-input-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .searchable-dropdown-content div {
        color: black;
        padding: 8px 12px;
        text-decoration: none;
        display: block;
    }

    .searchable-dropdown-content-selected-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

}

/* The search field when it gets focus/clicked on */
.searchable-dropdown-input:focus {
    outline: 3px solid rgba(13,202,240,0.5);
}

/* Links inside the searchable dropdown */
.searchable-dropdown-content div {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.searchable-dropdown-content-selected-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Change color of searchable dropdown links on hover */
.searchable-dropdown-content div:hover {
    background-color: var(--bs-light)
}

/* Show the searchable dropdown menu */
.show {
    display:block;
}

.image-item {
    background: lightgray;
    border-radius: 15px;
    border-style: dashed;
    border-color: black;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 160px;
}

.image-item-thumbnail {
    border-radius: 15px;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

@media (max-width: 600px) {
    .image-item {
        background: lightgray;
        border-radius: 15px;
        border-style: dashed;
        border-color: black;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        justify-content: center;
        padding: 10px;
        min-height: auto;
    }

    .image-item-thumbnail {
        border-radius: 15px;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
}

.dropdown {
    width: auto !important;
    display: block !important;
}

/* ============================================
   STANDARDIZED PAGE DESIGN SYSTEM
   ============================================ */

/* Standardized Page Container */
.page-container {
    padding: 1.5rem 0;
}

/* Standardized Page Header */
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Standardized Table Styles */
.standard-table {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.standard-table thead tr {
    background-color: #e0f2fe !important;
}

.standard-table thead th {
    padding: 1rem;
    font-weight: 600;
    color: #1e40af;
    border-bottom: 2px solid #bfdbfe;
    vertical-align: middle;
}

.standard-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.standard-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Standardized Button Styles */
.btn-action {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Standardized Card Styles */
.standard-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.standard-card .card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.standard-card .card-body {
    padding: 1.5rem;
}

/* Receipt Status Badge */
.receipt-status-badge {
    cursor: default !important;
    pointer-events: none !important;
    direction: rtl !important;
    text-align: right !important;
    padding: 0.35em 0.65em !important;
    display: inline-block !important;
    border-top-left-radius: 0.375rem !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

/* Visual Order Status Timeline */
.status-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-icon .material-icons {
    font-size: 24px;
}

.timeline-content {
    flex-grow: 1;
    padding-right: 15px;
    padding-top: 5px;
}

.timeline-content h6 {
    margin: 0;
    font-weight: 600;
    color: #2d3748;
}

.timeline-line {
    position: absolute;
    right: 23px;
    top: 48px;
    width: 2px;
    height: calc(100% + 20px);
    background-color: #e2e8f0;
    z-index: 1;
}

.timeline-line.active {
    background-color: #27ae60;
}

.timeline-item.current .timeline-icon {
    box-shadow: 0 0 0 4px rgba(37, 174, 96, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(37, 174, 96, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 174, 96, 0.1);
    }
}

.timeline-item.canceled .timeline-icon {
    background-color: #e74c3c !important;
}

/* Activity List Styles */
.activity-list {
    max-height: 500px;
    overflow-y: auto;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon .material-icons {
    font-size: 24px;
}

.activity-item {
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px !important;
    margin: -8px 0 8px 0 !important;
}
