:root{
    --text-color:#f10ade;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

            body {
                font-family: 'Nunito', sans-serif;
            }

    .login-container {
        background: url('sale.jpg') no-repeat center center;
        background-size: cover;
        padding: 60px 20px;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: -1rem;
    }

.hero {
      position: relative;
      height: 100vh;
      background-image: url('red-wal.jpg'); /* Replace with your image */
      background-size: cover;
      background-position: center;
      color: white;
    }

    .top-right-links {
      position: absolute;
      top: 20px;
      right: 40px;
    }

    .top-right-links a {
      margin-left: 20px;
      text-decoration: none;
      color: white;
      font-size: 14px;
      border-bottom: 1px solid transparent;
      transition: border-bottom 0.3s;
    }

    .top-right-links a:hover {
      border-bottom: 1px solid white;
    }

    .hero-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateY(-50%);
      max-width: 600px;
      background-color: rgba(0, 0, 0, 0.5); /* Optional overlay for readability */
      padding: 40px;
      border-radius: 10px;
    }

    .hero-content h1 {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .hero-content p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .hero-content .btn {
      display: inline-block;
      padding: 12px 24px;
      background-color: #00bcd4;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      transition: background-color 0.3s;
    }

    .hero-content .btn:hover {
      background-color: #0097a7;
    }

    @media (max-width: 768px) {
      .hero-content {
        left: 5%;
        right: 5%;
        padding: 30px;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      .top-right-links {
        right: 20px;
        top: 15px;
      }

      .top-right-links a {
        font-size: 13px;
      }
    }

.py-4{
    width: 100% !important;
}

.admin-dash{
    display: flex;
    flex-direction: row-reverse;
}

.suggestions-box {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: white;
    width: 100%;
    z-index: 1000;
    display: none; /* Hide by default */
}

.suggestions-box ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.suggestions-box li {
    padding: 8px;
    cursor: pointer;
}

.suggestions-box li:hover {
    background-color: #f1f1f1;
}

/* Add this to your custom CSS */
.suggestions-box ul li {
    padding: 5px;
    cursor: pointer;
    background-color: white;
}

.suggestions-box ul li:hover {
    background-color: #f0f0f0;
}

.suggestions-box{
border: 1px solid #ced4da;
border-radius: 0.25rem;
position: absolute;
width: 21%;
background-color: white;
max-height: 250px;
overflow-y: auto;
z-index: 1000;
margin-top: 2px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.form {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of form elements */
    gap: 10px;
}

.form-group {
    flex: 1;
    /* min-width: 250px; Minimum width for the form fields */
}

.border-bottom{
    display: flex;
    justify-content: space-around;
}

#cart-total-div{
    display: inline-block;
}

#final-submit-form{
    float: right;
}

/* Styling for the form inputs */
/* .form-control {
    width: 100%;
} */

.btn-add-product {
    background-color: var(--text-color); /* Blue background */
    color: white; /* White text */
    border: none; /* Remove default border */
    padding: 7px 10px !important; /* Increase padding for a larger button */
    font-size: 16px; /* Slightly larger font size */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.btn-add-product:hover {
    background-color: #0056b3; /* Darker blue on hover */
    cursor: pointer; /* Pointer cursor on hover */
    transform: scale(1.05); /* Slight scale-up effect */
}

.btn-add-product:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Custom focus outline */
}

.btn-add-product:active {
    background-color: #004085; /* Even darker blue on click */
    transform: scale(1); /* Reset scale on active */
}

.form-submit{
    align-self: last baseline;
}


/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar Container */
#adminSidebar {
    width: 60px; /* was 220 before */
    background-color: rgb(112 25 105);
    color: #fff;
    min-height: 100vh;
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow-x: hidden;
    position: relative;
    top: 0;
    left: 0;
}

/* Collapsed Sidebar */
#adminSidebar.sidebar-collapsed {
    width: 200px; /* was 6o before */
}

/* Sidebar Header (with toggle button) */
.sidebar-header {
    padding-right: 10px;
    text-align: right;
}

#toggleSidebarBtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Navigation Styling */
.sidebar-navigation {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #c5c5dc;
    transition: background 0.2s;
}

.sidebar-link:hover {
    background-color: #2f2f4f;
    color: #fff;
}

/* Icon Styling */
.sidebar-icon {
    margin-right: 20px; /* was ten before */
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.badge {
    position: absolute;
    background-color: red;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 15px;
}

/* Text Styling */
.sidebar-text {
    font-size: 14px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    color: white;
}

/* Sidebar Link Button */
.collapsible-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

/* Submenu Hidden by Default */
.submenu {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0;
}

.submenu.show {
    max-height: 200px; /* adjust as needed */
    padding: 10px 0;
}

.submenu-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #bbb;
    transition: background 0.2s;
}

.submenu-link:hover {
    background-color: #3a3a4f;
    color: #fff;
}

/* Arrow Down Rotation */
.arrow {
    transition: transform 0.3s ease;
    margin-left: 5rem;
    font-size: 1.2rem;
}

.arrow.rotate {
    transform: rotate(180deg);
}

/* Styling for the logout link */
.logout-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

.logout-item:hover {
    background-color: #2d3a4b;
    border-radius: 5px;
}

/* Sidebar icon style for logout */
.logout-item .sidebar-icon {
    margin-right: 10px;
}

/* Adjusting the overall appearance for dropdown items */
.dropdown-menu {
    background-color: #1e293b;
    border: none;
    border-radius: 5px;
    padding: 0;
}

/* Optional: Customize the hover effect for other dropdown items */
.dropdown-item:hover {
    background-color: #2d3a4b;
    color: #ffffff;
}


/* Flex container for side-by-side layout */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Add space between the items */
}

.product-con{
    padding: 0 !important;
    margin: 0 20px !important;
}

/* .product-btn{
    display: flex;
    flex-direction: column;
} */

/* Individual flex items */
.flex-item {
    flex: 1 1 48%; /* Each item takes up 48% of the container width */
    min-width: 300px; /* Ensure a minimum width to avoid cramping */
}

#product-form{
    width: 25%;
}



/* Styling for unread notifications (white background) */
.unread-notification {
    background-color: #ffffff; /* White background for unread */
    color: #333; /* Dark text for contrast */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd; /* Light border to differentiate each notification */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.unread-notification .notification-content {
    font-size: 14px;
    margin-bottom: 8px;
}

.unread-notification .notification-content strong {
    color: #000;
    font-weight: bold;
}

.unread-notification .notification-content small {
    display: block;
    font-size: 12px;
    color: #555;
}

.unread-notification button, .mark-read-btn {
    background-color: var(--text-color); /* Blue button for "Mark as Read" */
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all .7s ease;
}

.mark-read-btn{
    text-decoration: none;
    background-color: rgb(5, 150, 5);
    transition: all .7s ease;
    margin-right: 1rem;
}

.mark-read-btn:hover{
    background-color: green;
}

.unread-notification button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Styling for read notifications (grey background) */
.read-notification {
    background-color: #f1f1f1; /* Grey background for read */
    color: #666; /* Lighter text for read */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc; /* Light grey border */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

.read-notification .notification-content {
    font-size: 14px;
    margin-bottom: 8px;
}

.read-notification .notification-content strong {
    color: #333;
    font-weight: bold;
}

.read-notification .notification-content small {
    display: block;
    font-size: 12px;
    color: #777;
}

.read-notification button {
    background-color: #e63946; /* Red button for delete */
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.read-notification button:hover {
    background-color: #c82333; /* Darker red on hover */
}


.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1 1 calc(25% - 20px);
    background: #ffffff;
    border: 1px solid #ddd;
    border-left: 5px solid var(--text-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #f10ade;
}

.stat-box p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.chart-container {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

canvas {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100% !important;
    max-width: 100%;
    height: 300px !important;
}

.row.chart-container{
    display: flex;
}

.chart-container-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.chart-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 48%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chart-box h4 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.chart-box canvas {
    width: 100% !important;
    height: 300px !important;
}

.admin-dash{
    display: flex;
    gap: 1rem;
    flex-direction: row !important;
}

.admin-dash a{
    text-decoration: none;
    align-self: center;
}

.dropdown-item{
    color: white;
    background-color: rgba(220, 220, 220, 0.795) !important;
    border: none;
    padding: 10px !important;
    border-radius: 5px !important;
    transition: all .7s ease;
}

.dropdown-menu:hover .dropdown-item{
    background-color: #0d6efd !important;
}

.shop-flex-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap; /* so it doesn't break on smaller screens */
}

.shop-form-section {
    flex: 1 1 300px;
    padding: 20px;
    border-radius: 10px;
}

.shop-table-section {
    flex: 2 1 500px;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}



.delete-btn{
    background-color: red !important;
}





/* Responsive typography */
@media (max-width: 768px) {
    
    .shop-flex-wrapper {
        flex-direction: column;
    }
    
          #product-table{
          overflow-x:auto;
          width:95%;
      }

    #salesTrendChart{
        padding: 0;
    }
    .stat-box {
        flex: 1 1 100%;
    }
    .chart-box {
        max-width: 100%;
    }
    #adminSidebar{
        overflow-x: visible;
    }
    #adminSidebar .sidebar-navigation a .sidebar-text{
        display: none;
    }
    #adminSidebar.sidebar-collapsed {
        width: 200px;
    }
    .arrow{
        display: none;
    }
    #product-form {
        width: 85%;
    }
    .form {
        flex-direction: column; /* Stack the form elements vertically on small screens */
    }

    .form-group {
        flex: 1 1 100%; /* Allow the form elements to take up full width on small screens */
    }

    #product_suggestions .list-group-item {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .flex-container {
        flex-direction: column; /* Stack items vertically on smaller screens */
    }

    .flex-item {
        flex: 1 1 100%; /* Full width for each item */
    }
}

@media (max-width: 480px) {
    #product_suggestions {
        font-size: 0.9rem;
    }
}