@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'roboto', sans-serif;
}
:root {
    --primary-color: #0057A0;
    --secondary-color: #e9c6ba;
    --light-bg: #F6F7FB;
    --hover-primary: #0f7ed8;
    --hover-secondary: #e0b5a7;
    --danger: #FF8C00;
    --danger-hover: #fe9f2b;
    --text-dark: #333;
    --white: #fff;
    --border-secondary: #0d640d;
}
body{
    background-color: #f8f7f4 !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
}
p, span, div, a, li, button, input, textarea {
  font-family: 'Roboto', sans-serif;
}
/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--hover-primary) !important;
    border-color: var(--hover-primary) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.btn-secondary:hover {
    background-color: var(--hover-secondary) !important;
    border-color: var(--hover-secondary) !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-danger:hover {
    background-color: var(--danger-hover) !important;
    border-color: var(--danger-hover) !important;
}

/* Badge Styles */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Form Styles */
.form-control, .form-select {
    border-color: var(--secondary-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(140, 113, 219, 0.25);
}

.border-danger{
   border: 1px solid var(--danger)!important;
   border-radius: 5px;
   color:black;
}
.border-primary{
    border: 1px solid var(--primary-color)!important;
    border-radius: 5px;
    color:black;
}

.border-secondary{
    border: 1px solid var(--border-secondary)!important;
    border-radius: 5px;
    color:black;
}

/* Navigation styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99;
    background: white;
}

/* Sidebar styles */
.sidebar {
    min-height: 100vh;
    padding: 20px;
    box-shadow: 4px -3rem .25rem rgba(0, 0, 0, .075) !important;
    /* box-shadow: 2px 0 5px rgba(0,0,0,0.1); */
    background-color: #fff;
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        width: 60px;
        padding: 15px 5px;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding: 12px 5px;
    }

    .sidebar .nav-link span {
        display: none;
    }

    .sidebar .nav-link i {
        margin: 0;
        font-size: 1.4rem;
    }

    .main-content {
        margin-left: 60px;
    }

    .navbar {
        width: calc(100% - 60px);
        /* margin-left: 60px; */
    }
}

/* Keep the existing media queries for smaller screens */
@media (max-width: 576px) {
    .sidebar {
        width: 50px;
    }

    .main-content {
        margin-left: 50px;
    }
}

/* Main content styles */
.main-content {
    padding: 20px;
    margin-left: 250px;
    margin-top: 56px;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        width: 60px;
        padding: 15px 5px;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding: 12px 5px;
    }

    .sidebar .nav-link span {
        display: none;
    }

    .sidebar .nav-link i {
        margin: 0;
        font-size: 1.4rem;
    }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
        padding: 15px;
    }

    .navbar {
        width: 100%;
        left: 0;
    }
}

/* For extra small devices */
@media (max-width: 576px) {
    .sidebar {
        width: 50px;
        padding: 10px 5px;
    }

    .main-content {
        margin-left: 50px;
        width: calc(100% - 50px);
        padding: 10px;
    }

    .sidebar .nav-link i {
        font-size: 1.2rem;
    }
}

/* Custom button styles */
.btn-link.nav-link {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-link.nav-link:hover {
    background-color: rgba(0,0,0,0.05);
}
.login-container {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 700px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .login-left {
    background-color: #F6F7FB;;
    padding: 3rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .login-left h1 {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 1rem;
    color: #333;
  }
  .login-left p {
    font-size: 18px;
    font-weight: 500;
    margin: 0.5rem 0;
    color: #333;
  }
  .login-right {
    flex: 1;
    padding: 3rem 2rem;
  }
  .login-right h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
  }
  .btn-login {
    background-color: #F6F7FB;
    color: black;
    border: none;
    border-radius: 6px;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  .btn-login:hover {
    background-color: #aad9ff;
    color: black;
  }
  .forgot {
    text-align: right;
    font-size: 14px;
  }
  .forgot a {
    text-decoration: none;
    color: black;
  }
  .login-left img{
      width: 100%;
      height: 100px;
      object-fit: contain;
  }

/* Dashboard card styles */
.avatar-sm {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive font sizes */
@media (max-width: 1200px) {
    .card-body h5 {
        font-size: 1rem;
    }
    .card-body .fs-4 {
        font-size: 1.1rem !important;
    }
    .card-body .fs-3 {
        font-size: 1.5rem !important;
    }
}

/* Navbar dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
}

/* Sidebar active and hover states */
.sidebar .nav-link {
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000 !important;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #333;
    border-radius: 0 4px 4px 0;
}

/* Responsive dropdown adjustments */
@media (max-width: 992px) {
    .dropdown-menu {
        margin-top: 0.5rem;
    }
}

/* Users/Orders Table Styles */
.table-responsive {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 500;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 16px;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    color: #495057;
    border-bottom: 1px solid #eee;
}

/* Status badges */
.border-danger, .border-primary, .border-secondary {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Action buttons */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    margin: 0 2px;
}

.btn-sm i {
    font-size: 0.875rem;
}

/* Card styles */
.card {
    border: none;
}

.card-body {
    padding: 0px;
    /* margin-top: 10px; */
}

/* Pagination styles */
.pagination {
    margin: 1rem 0 0;
    padding: 1rem;
    justify-content: center;
}

.page-link {
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    border-radius: 4px;
    margin: 0 2px;
}

.page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}
/* Form Field Styles */
.form-label {
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #374151;
    background-color: #fff;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(140, 113, 219, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9CA3AF;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Invalid state */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Form group spacing */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Textarea specific */
textarea.form-control {
    min-height: 100px;
}

/* File input specific */
input[type="file"].form-control {
    padding: 0.5rem;
    line-height: 1.5;
}

input[type="file"].form-control::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem 0.75rem -0.375rem -0.75rem;
    border: 0;
    border-radius: 4px;
    background-color: #F3F4F6;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background-color: #E5E7EB;
}

/* Form inside card */
.card .form-control,
.card .form-select {
    background-color: #F9FAFB;
}

/* Modal form fields */
.modal .form-control,
.modal .form-select {
    background-color: #fff;
}

/* Content Header Styles */
.content-header {
    /* background-color: #E1F1FF; */
    border-bottom: 1px solid #ddd;
    padding: 10px;
    border-radius: 0px;
    margin-bottom: 20px;
}
.header-title {
    position: relative;
}
.header-title h2 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.header-title h2 i {
    font-size: 20px;
    color: var(--text-dark);
    margin-right: 0.5rem;
}
.btn-with-icon {
    padding: 0.4rem 0.8rem;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-with-icon i {
    font-size: 20px;
}
/* Update the existing button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}
.btn-primary:hover {
    background-color: var(--hover-primary);
    border-color: var(--hover-primary);
}
.dropdown-item.active, .dropdown-item:active{
    color: black !important;
}
.navbar-brand img{
    width: 150px;
    height: auto;
}
