@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

body {
    font-family: "Nunito", serif;
    margin: 0;
    padding: 0;
    background-color: #001031;
    background-image: url('../imgs/bg-body.png');
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
}

/* Navbar */
.navbar {
    background-color: rgba(0, 16, 49, 0.4); 
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3); 
}
.navbar .left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}
.navbar .search-container {
    display: flex;
    align-items: center;
}
.navbar input[type="text"] {
    padding: 8px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
}
.navbar input[type="text"]::placeholder {
    color: rgba(51, 51, 51, 0.6); 
}
.navbar .nav-links {
    display: flex;
    gap: 20px;
}
.navbar .nav-links img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.navbar .nav-links img:hover {
    filter: brightness(1.2);
}
.profile-menu {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 51px;
    right: -5px;
    background-color: rgba(0, 16, 49, 0.4); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1; 
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1); 
}
.profile-menu.active .dropdown-menu {
    display: block ;
} 
.menu-icon {
    width: 20px; 
    height: 20px;
    margin-right: 10px;
}

/*  Dashboard Container  */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    margin: 20px auto;
}
.row {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.card {
    background-color: rgba(0, 16, 49, 0.4); 
    color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    flex: 1;
    min-height: 150px;
    position: relative;
    display: flex;
    align-items: center;
}
.row1 .card {
    flex: 1 1 calc(20% - 20px);
    min-height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: -10;
}
.row1 .card .content {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    width: 100%;
}
.row1 .card .content img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.row1 .card .content .text {
    font-size: 18px;
}
.row1 .card .content .order {
    font-weight: bold;
}
.row1 .card .content .number {
    font-size: 24px;
    font-weight: bold;
}
.row2 .card {
    flex: 1 1 calc(50% - 20px);
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.row2 .card:first-child {
    flex: 2 1 calc(70% - 20px);
    height: 300px;
}
.row2 .card:nth-child(2) {
    flex: 2 1 calc(30% - 20px);
    height: 300px;
}
.row3 .card {
    flex: 1 1 calc(50% - 20px);
    min-height: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.row3 .card:nth-child(2) {
    align-items: flex-start;
}
.row3 .card:nth-child(2) h4 {
    align-self: center;
}
.title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.product-details {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.product-image {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 50%;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-name {
    font-size: 16px;
    font-weight: bold;
}
.product-price {
    font-size: 14px;
    color: #555;
}
.recent-order-text {
    position: sticky;
    top: 32px;
    left: 0px;
    font-size: 18px;
    font-weight: bold;
    z-index: 999;
    padding: 5px;
    border-radius: 4px;
}

#myTable tbody tr:nth-child(n+6) {
    display: none;
}
#myTable {
  font-size: 10px; 
  width: 100%; 
}

#myTable th, #myTable td {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  line-height:1;
  border: none;
}

table th{
  white-space: nowrap ;
}
.dataTables_filter{
  font-size: 10px;
}
.dataTables_info{
  font-size: 12px;
}
.dataTables_paginate{
  font-size: 12px;
}
.pagination-sm .page-item .page-link {
    padding: 4px 10px; 
    font-size: 12px;    
}
div.dataTables_wrapper div.dataTables_filter input {
    margin-left: .5em;
    display: inline-block;
    width: auto;
    background-color: rgba(255, 255, 255, 0.4);
  }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.custom-text {
  margin-right: 10px; 
}
.dataTables_filter {
  margin-left: 10px;  
}
#myChart {
  width: 100%; 
  margin: 0 ; 
  padding: 0;  
  display: block;  
}

@media screen and (max-width: 768px) {
    .navbar {
        gap: 10px;
    }

    .navbar .left-section {
        justify-content: center;
    }

    .dashboard-container {
        width: 80%;
        padding: 20px;
    }

    .row1 .card,
    .row3 .card {
        flex: 1 1 100%; 
    }

    .row2 {
        flex-direction: column; 
    }

    .row2 .card {
        flex: 1 1 100%; 
        height: auto; 
    }

    table th,
    table td {
        font-size: 10px;
        padding: 8px;
    }
}

#product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover; 
    border-radius: 5px; 
}

.product-info {
    display: flex;
    flex-direction: column;
}

