@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500&display=swap');


* {
    font-family: 'Tajawal', cursive;
}

.body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.tablet-container {
    width: 930px; 
    height: 550px; 
    border-radius: 15px; 
    padding: 10px; 
    overflow: hidden;
    justify-content: center;
    background-color: #050e1a;
    align-items: center;
    text-align: center;
    position: fixed; 
    top: 190px; 
    left: 485px;
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



.inner-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 10px; 
    position: relative;  
    overflow: hidden;  

}

.inner-container::before {
    content: "";  
    position: absolute;  
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0c3461;
    z-index: -1;  
    border-radius: 10px; 
}


.top-bar, .category-bar {
    flex-shrink: 0;
}


#table-container {
    overflow-y: auto;
    background-color: #06101d;
    flex-grow: 1;
    padding: 14px;  
}



::-webkit-scrollbar {
    width: 3px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    background-color: #0a2442;  
    border-radius: 5px;
    
}

::-webkit-scrollbar-track {
    background-color: #071424;
    
}

::-webkit-scrollbar {
    
    width: 5px;
}

#table-container::-webkit-scrollbar-thumb {
    background-color: #490757;
    border-radius: 5px;
}

#table-container::-webkit-scrollbar-track {
    background-color: #160422;

}

#table-container {
    scrollbar-width: thin;
    scrollbar-color: #1c032c #160422;
}

.header {
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
    border-radius: 10px; 
}

.left-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b2a4d; 
    padding: 3px 10px;
    border-radius: 5px;
    position: relative; 
    overflow: hidden; 
}

.left-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit; 
    z-index: -1; 

    
    
}

.left-container span {
    color: white;
    font-size: 12px;
}

.middle-container {
    flex-grow: 1;
    text-align: center;
    border-left: 1px solid #072344;
    margin-left: 10px;
    padding: 3px 10px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 9px;
    background-color: #071424;
    color: white;
    border-top-left-radius: 10px;  
    border-top-right-radius: 10px;  
}

.profile-section {
    display: flex;
    align-items: center;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url(); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
    margin-right: 10px;
}

.table-items {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 10px 0;
    padding: 5px;  
}

.unclickable {
    opacity: 0.5;
    pointer-events: none;  
    cursor: not-allowed;  
    
}

.item {
    position: relative;
    width: 200px;
    height: 300px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid #0c3461;
    cursor: pointer;
    overflow: hidden;  
    background-color: #0c3461;  
    transition: transform 0.3s ease; 
}


.already-bought {

    background: linear-gradient(to left, #07911e, #07911e98, #0000);
    color: #ffffff;            
    position: absolute;
    width: 150%;               
    top: 61%;                 
    left: 0%;                
    z-index: 10;               
    font-size: 0.8rem;
    padding: 5px 0;          
    text-align: center;       
}


.item:hover {
    transform: scale(1.1); 
    z-index: 1; 

}

.item img {
    width: 100%;
    height: 300px; 
    flex-grow: 0;  
    object-fit: cover; 
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    max-width: 100%;
    max-height: 220px;
}

.item-name {
    height: 50px; 
    flex-grow: 1;  
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #041222;
    color: white;
    padding: 2px 0;  
    font-size: 15px;  
}

.item-price {
    background-color: #041222;
    padding: 13px 0;  
    display: flex;
    justify-content: center;
    align-items: center;
    color: green;
    text-shadow: green 0px 0px 2px;
    font-size: 18px;  
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.item-price .stock {
    color:#EB0D0D; 
    

}

.category-bar {
    display: flex;
    align-items: center; 
    overflow-x: auto;
    max-height: 150px;  
    overflow-y: auto;
    background-color: #0b294b;
    color: white;
    box-shadow: 0px 10px 50px #041222;
    padding: 5px;
    gap: 10px;
    white-space: nowrap;
}

.search-bar {
    margin-left: auto; 
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.category-tab {
    padding: 5px 20px;
    border: 1px solid #041222;
    background-color: #041222;
    cursor: pointer;
    border-radius: 15px;
    transition: background-color 0.3s;
}

.category-tab:hover {
    background-color: #041222;
}

.category-tab.active {
    background-color: #0b2d53;
}

.clickable-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgb(44, 44, 44); 
    margin-right: 10px;
    border: 1px solid #0a2f58;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; 
}

.clickable-circle:hover {
    transform: scale(1.1); 
    z-index: 1; 
}

.circle-zero {
    background-color: transparent;
    background-image: url('svg/interrogation.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s ease;
    
}

.hide-out-of-stock-btn {
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #333;
    color: #fff;
    transition: background-color 0.3s;
}

.hide-out-of-stock-btn:hover {
    background-color: #4d0000;
}

.hide-out-of-stock-btn.active {
    background-color: #f00;
}

.circle-one {
    background-color: transparent;
    background-image: url('svg/add.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s ease;
}

.circle-two {
    background-color: transparent;
    background-image: url('svg/cross-circle.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.3s ease;
    box-shadow: 0px 0px 30px #0c3461;
}

.circle-third {
    transition: 0.3s ease;
    background-color: #5865F2;
    background-image: url('svg/discord.svg');
    background-size: 70%; 
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0px 0px 30px #0c3461;
}

.search-bar {
    margin-left: auto;
    padding: 8px 15px;  
    border-radius: 16px;  
    border: 1px solid transparent;  
    background-color: rgba(103, 19, 182, 0);  
    color: white;
    box-shadow: 0px 0px 30px #0c3461;
    transition: box-shadow 0.3s, transform 0.3s;  
    outline: none;  
}

.search-bar:focus {
    transform: scale(1.09);  
}


.swal2-icon.swal2-info {
    border-color: #0c3461 !important;
    color: #ffffff !important;
  }