/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* ============ Max-Width Variations ============ */
.max-w-xs {
    max-width: 20rem !important; /* 320px */
}

.max-w-sm {
    max-width: 30rem !important; /* 480px */
}

.max-w-md {
    max-width: 40rem !important; /* 640px */
}

.max-w-lg {
    max-width: 50rem !important; /* 800px */
}

.max-w-xl {
    max-width: 60rem !important; /* 960px */
}

.max-w-2xl {
    max-width: 70rem !important; /* 1120px */
}

.max-w-3xl {
    max-width: 80rem !important; /* 1280px */
}

.max-w-full {
    max-width: 100% !important;
}

.max-w-half {
    max-width: 50% !important;
}

.max-w-third {
    max-width: 33.333% !important;
}

.max-w-quarter {
    max-width: 25% !important;
}

/* Responsive max-width classes */
@media (max-width: 992px) {
    .md\:max-w-full {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .sm\:max-w-full {
        max-width: 100% !important;
    }

    .max-w-half,
    .max-w-third,
    .max-w-quarter {
        max-width: 100%;
    }
}

/* Scrollbar Styling - Fixed width issues */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    scrollbar-width: thin;
}
/* Hide scrollbar arrow buttons */
::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* Hide arrow up/down buttons */
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
    display: none;
}

.scrollable::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
    border-radius: var(--scrollbar-border-radius);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: var(--scrollbar-border-radius);
    transition: var(--transition-smooth);
    min-height: 40px; /* Ensures the thumb has a minimum height */
    border: 2px solid transparent; /* Creates padding effect */
    background-clip: padding-box; /* Ensures the background respects the border */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover-color);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Reset CSS - أساسي لإزالة الفروقات بين المتصفحات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Reset padding for all heading elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 0;
}

/* إزالة الـ outline عند التركيز مع الحفاظ على إمكانية الوصول */
button {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    text-align: center;
    text-transform: inherit;
    outline: none;
}

/* True anchor reset */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    outline: none;
    cursor: pointer;
}

input,
select,
textarea,
fieldset,
optgroup,
option {
    appearance: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    vertical-align: middle;
    width: 100%;
}

body {
    background-color: var(--color-background);
    font-family: "Tajawal", "Cairo", "Noto Sans Arabic", "IBM Plex Sans Arabic",
        sans-serif;

    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

[dir="rtl"] input[type="tel"] {
    direction: rtl;
}

.link:hover,
.link:active,
.link:visited,
.link:link {
    text-decoration: none;
}

/* Add global transition handling */

[class*="transition"],
[class*="hover"],
[class*="transform"],
.animation {
    transition: var(--transition-smooth);
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Prevent text break during transitions */

.order-card *,
.btn-status *,
.btn-show-more * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

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

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

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

.bell-icon {
    color: #fff;
    font-size: 1.2rem;
}

header {
    /* background-image: url('./Hero.jpg'); height: 870px; */
    background-size: cover;
    background-position: center;
    color: #fff;

    h1 {
        font-size: 100px;
        /* margin-top: 280px; */
    }

    .container {
        width: 75%;
    }

    .container .row {
        background-color: white;
        padding: 15px 0px;
        border-radius: 20px;
        border: none;
    }

    input {
        outline: none;
        box-shadow: none;
        border: none;
    }
}

.game-box {
    transition: transform 0.3s ease-in-out;
}

.game-box:hover {
    transform: scale(1.05);
}

.custom-img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /* add a border radius */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    /* add a box shadow */
}

.carousel-item img {
    max-height: 300px;
    object-fit: contain;
}

.carousel-caption {
    color: #fff;
}

.custom-button {
    background-color: #1081d7;
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
}

.search {
    position: relative;
    box-shadow: 0 0 40px rgba(51, 51, 51, 0.1);
}

.search input {
    height: 60px;
    text-indent: 25px;
    border: 2px solid #d6d4d4;
}

.search input:focus {
    box-shadow: none;
    border: 2px solid blue;
}

.search .fa-search {
    position: absolute;
    top: 20px;
    left: 16px;
}

.search button {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 50px;
    width: 110px;
    background: blue;
}

/* .card img {
    border-radius: 15px;
}

.card {
    background-color: #333;
    border: none;
    border-radius: 15px;
    padding: 0;
} */

.custom-button {
    background-color: #1081d7;
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
}

.section-title {
    text-align: right;
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

@media (max-width: 480px) {
    /* 
    .navbar button {
        padding-top: 10px;
        margin-top: 20px;
        margin-bottom: 10px;
        margin-right: 40px;
    } */

    header {
        background-image: url("./Hero.jpg");
        height: 430px;
        background-size: cover;
        background-position: center;
        color: #fff;

        h1 {
            font-size: 48px;
            margin-top: 20px;
        }

        .container {
            width: 75%;
        }

        .container .row {
            background-color: white;
            padding: 10px 0px;
            border-radius: 20px;
            border: none;
        }

        input {
            outline: none;

            border: none;
        }
    }
}

.header {
    background-color: #1081d7;
    /* padding: 20px; */
    text-align: center;
    color: white;
    border-radius: 10px;
}

.table-container {
    margin-top: 20px;
}

.table {
    color: white;
}

.table th,
.table td {
    vertical-align: middle;
    text-align: center;
}

.btn-view {
    background-color: transparent;
    border: none;
    color: #00ff00;
}

.btn-view.red {
    color: #8a649e;
}

.search-bar {
    /* display: flex;
  justify-content: center; */
    /* gap: 10px;    */
    margin-top: 20px;
}

.search-bar input {
    border-radius: 20px;
    padding: 16px;
}

.date-picker {
    background-color: #2d2d2d;
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
    text-align: center;
}

footer {
    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
    }

    .nav-item {
        flex-grow: 1;
    }

    .navbar {
        background-color: var(--color-slate-900);
    }

    .icon {
        font-size: 24px;
    }
}

/* Page Headers Styling */

.page-header {
    color: var(--color-secondary-800);
    font-size: 1.7rem;
    font-weight: 700;
    /* margin-bottom: 1.5rem; */
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

/* RTL styling for page header */
[dir="rtl"] .page-header {
    border-right: 4px solid var(--color-primary-600);
    padding-right: 1rem;
    border-left: none;
    padding-left: 0;
}

/* LTR styling for page header */
[dir="ltr"] .page-header {
    border-left: 4px solid var(--color-primary-600);
    padding-left: 1rem;
    border-right: none;
    padding-right: 0;
}

.page-header i {
    font-size: 1.5rem;
    color: var(--color-primary-600);
    transition: var(--transition-smooth);
}

.page-header:hover i {
    transform: scale(1.1);
}

/* RTL positioning for the after element */
[dir="rtl"] .page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -1px;
    width: 60%;
    height: 3px;
    background: linear-gradient(
        to left,
        var(--color-primary-600),
        var(--color-primary-500)
    );
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* LTR positioning for the after element */
[dir="ltr"] .page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -1px;
    width: 60%;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--color-primary-600),
        var(--color-primary-500)
    );
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* RTL hover animation */
[dir="rtl"] .page-header:hover {
    transform: translateX(-5px);
    color: var(--color-secondary-900);
}

/* LTR hover animation */
[dir="ltr"] .page-header:hover {
    transform: translateX(5px);
    color: var(--color-secondary-900);
}

.page-header:hover::after {
    width: calc(100% + 1px);
    height: 3px;
}

/* Page Subheader Styling */
.page-subheader {
    color: var(--color-slate-900);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    justify-content: center;
    width: 100%;
}

/* RTL styling for page subheader */
[dir="rtl"] .page-subheader {
    padding-right: 0.8rem;
    border-left: none;
    padding-left: 0;
}

/* LTR styling for page subheader */
[dir="ltr"] .page-subheader {
    padding-left: 0.8rem;
    border-right: none;
    padding-right: 0;
}

.page-subheader i {
    font-size: 1.2rem;
    color: var(--color-primary-500);
    transition: var(--transition-smooth);
}

.page-subheader:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .page-header {
        font-size: 1.5rem;
        text-align: center;
        width: calc(100% - 2rem);
        margin-right: 1rem;
        margin-left: 1rem;
        border-right: none;
        border-left: none;
        padding-right: 0;
        padding-left: 0;
        border-bottom: 4px solid var(--color-primary-600);
        padding-bottom: 0.5rem;
        justify-content: center;
    }

    .page-header::after {
        display: none;
    }

    .page-header:hover {
        transform: translateY(-3px) !important;
    }

    .page-subheader {
        font-size: 1.2rem;
        text-align: center;
        width: calc(100% - 2rem);
        margin-right: 1rem;
        margin-left: 1rem;
        border-right: none;
        border-left: none;
        padding-right: 0;
        padding-left: 0;
        border-bottom: 3px solid var(--color-primary-500);
        padding-bottom: 0.4rem;
        justify-content: center;
    }

    .page-subheader:hover {
        transform: translateY(-2px) !important;
    }
}

/*******************
*  Notice Component
********************/

.notice-container {
    background-color: rgba(var(--color-yellow-500-rgb), 0.1);
    border: 1px solid var(--color-yellow-400);
    border-radius: var(--card-border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.notice-container .notice-text {
    color: var(--color-yellow-700);
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .notice-container {
        padding: 0.75rem;
    }
}

/* Minimal alternative */
.notice-minimal {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    background-color: var(--color-primary-50);
    color: var(--color-primary-800);
    border-inline-start: 4px solid var(--color-primary-800);
    border-radius: 0 0.25rem 0.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.notice-minimal:hover {
    background-color: var(--pin-key-hover-bg);
    border-inline-start-width: 6px;
}
