/* Custom Styles for Admin Panel */
:root {
    --white-color:                  #ffffff;
    --primary-color:                #ffd74f;
    --secondary-color:              #f65129;
    --section-bg-color:             #f9f9f9;
    --site-footer-bg-color:         #36363e;
    --custom-btn-bg-color:          #00a05d;
    --dark-color:                   #000000;
    --p-color:                      #717275;
    --border-color:                 #e9eaeb;
    --body-font-family:             'League Spartan', sans-serif;
    --border-radius-large:          15px;
    --border-radius-medium:         20px;
    --border-radius-small:          10px;
}

/* Base Styles */
body {
    background-color: var(--section-bg-color);
    font-family: var(--body-font-family);
    padding-top: 70px;
    color: var(--dark-color);
}

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 200px;
    background: var(--site-footer-bg-color);
    color: var(--white-color);
    padding: 20px 0;
}

.admin-content {
    flex: 1;
    padding: 20px;
    background: var(--section-bg-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: fixed;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu a {
    color: var(--white-color);
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    transition: 1s ease;
    transform: translate(20px);
}
.sidebar-menu a.active {
    background: var(--primary-color);
    color: var(--dark-color);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Card Styles */
.admin-card {
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 10px 0;
}

.stat-title {
    color: var(--p-color);
    font-size: 16px;
}

/* Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--section-bg-color);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover td  {
    background-color: var(--section-bg-color);
    /* color: #FFFFFF; */
    cursor: default;
    transition: var(--transiiton);
}

.admin-table tr:nth-child(even) {
    /* background: var(--section-bg-color); */
    background:#e7e7ea;
}

/* table search styles */
.table-search input {
    color: red;

}

.table-search input::placeholder {
    color: var(--custom-btn-bg-color);
    font-size: 20px;
    font-style: italic;
}

.search-controls-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-controls-row .form-label {
    font-weight: 500;
    color: #495057;
}

.search-controls-row .form-control {
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.search-controls-row .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-controls-row .input-group .btn {
    border-color: #ced4da;
    transition: all 0.2s ease;
}

.search-controls-row .input-group .btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Badge Styles */
.badge-status {
    padding: 6px 12px;
    border-radius: var(--border-radius-large);
    font-size: 14px;
}

.badge-pending,
.low-stock {
    background: #fff3cd;
    color: #856404;
}

.badge-completed,
.full-stock {
    background: #d4edda;
    color: #155724;
}

.badge-processing {
    background: #cce5ff;
    color: #004085;
}
.badge-rejected,
.zero-stock {
    background: #ec9897;
    color: #000000;
}

   /* Login/Signup Modal Styles */
   .account-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.account-modal .modal-body {
    padding: 2rem;
}

.account-tabs {
    display: flex;
    border-bottom: 2px solid #e9eaeb;
    margin-bottom: 1.5rem;
}

.account-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: none;
    border: none;
    font-weight: 600;
    color: #717275;
    cursor: pointer;
    transition: all 0.3s;
}

.account-tab.active {
    color: #00a05d;
    border-bottom: 3px solid #00a05d;
}

.account-form {
    display: none;
}

.account-form.active {
    display: block;
}


.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e9eaeb;
    border-radius: 10px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #ffd74f;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 79, 0.25);
}

.btn-account {
    background: #00a05d;
    border-color: #00a05d;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 15px;
    width: 100%;
    transition: all 0.3s;
}

.btn-account:hover {
    background: transparent;
    color: #00a05d;
    border-color: #00a05d;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #f65129;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 1.5rem;
}

.social-login p {
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
    color: #717275;
}

.social-login p:before,
.social-login p:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e9eaeb;
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9eaeb;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn:hover {
    background: #f9f9f9;
    border-color: #ffd74f;
}

.social-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.account-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9eaeb;
}

.account-footer a {
    color: #00a05d;
    font-weight: 600;
    text-decoration: none;
}

.account-footer a:hover {
    text-decoration: underline;
}

.nav-login-btn:hover {
    background: transparent;
    color: #00a05d;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-btn {
    background: var(--custom-btn-bg-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s;
}

.custom-btn:hover {
    background: transparent;
    border-color: var(--custom-btn-bg-color);
    color: var(--custom-btn-bg-color);
}

.tooplate-red {
    color: var(--secondary-color);
}

.tooplate-green {
    color: var(--custom-btn-bg-color);
}

.account-modal .modal-header {
    background: var(--site-footer-bg-color);
    color: var(--white-color);
    border-bottom: none;
    padding: 1.5rem;
}


/* Modal Styles */
.modal-header {
    background: var(--site-footer-bg-color);
    color: var(--white-color);
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    color: var(--white-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--custom-btn-bg-color);
    border-color: var(--custom-btn-bg-color);
}

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

.btn-warning {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

/* Page-Specific Button Styles */
/* .add-store-btn,
.add-user-btn,
.add-category-btn,
.add-wallet-btn,
.add-supplier-btn,
.add-product-btn {
    margin-bottom: 20px;
} */

/* Image/Logo Upload Styles */
.image-upload-container,
.logo-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.image-upload-box,
.logo-upload-box {
    flex: 1;
    min-width: 200px;
}

.image-preview-box,
.logo-preview-box {
    flex: 1;
    min-width: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.image-preview,
.logo-preview {
    max-width: 100%;
    max-height: 200px;
    display: none;
}

.image-placeholder,
.logo-placeholder {
    text-align: center;
    color: var(--p-color);
}

.image-placeholder i,
.logo-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    color: var(--border-color);
}

.file-input-label {
    display: block;
    padding: 12px;
    background: var(--section-bg-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 215, 79, 0.1);
}

.file-input-label i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--p-color);
}

#userLogo,
#productImage,
#updateProductImage,
#userImage,
#editUserImage,
#editpassword,
#storeLogo {
    display: none;
}

 /* Camera modal styles */
 .camera-modal .modal-dialog {
    max-width: 800px;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #000;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    margin-bottom: 15px;
}

#cameraFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.camera-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.capture-btn {
    background: var(--secondary-color);
    color: white;
}

.switch-camera-btn {
    background: var(--primary-color);
    color: var(--dark-color);
}

.close-camera-btn {
    background: var(--custom-btn-bg-color);
    color: white;
}

.captured-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* POS Specific Styles */
.pos-container,
.hoard-container {
    display: flex;
    gap: 20px;
}

.products-section,
.hoard-section {
    flex: 2;
}

.cart-section {
    flex: 1;
}

.product-grid,
.hoard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-card,
.hoard-card {
    background: white;
    border-radius: var(--border-radius-medium);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hoard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-name,
.hoard-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price,
.hoard-stock {
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-details {
    flex: 2;
}

.cart-item-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--section-bg-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

.quantity-value {
    margin: 0 10px;
    font-weight: 600;
}

.cart-totals {
    margin-top: 20px;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.final-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    border-top: 2px dashed var(--border-color);
    padding-top: 10px;
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

/* keyboard  */

.number-keyboard {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}
.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.keyboard-key {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}
.keyboard-key:hover {
    background: #e9ecef;
}
.total-amount-display {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #007bff;
}


.payment-btn {
    padding: 12px;
    text-align: center;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
}

.cash-btn {
    background: var(--custom-btn-bg-color);
    color: white;
}

.card-btn {
    background: var(--primary-color);
    color: var(--dark-color);
}

.search-box {
    margin-bottom: 20px;
}

/* New Styles for the requested rows */
.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-greeting {
    display: flex;
    justify-content: right;
    align-items: center;

}

.greeting,
.user-store {
    font-weight: 600;
}

.user-name {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.current-time {
    font-size: 1rem;
    color: var(--p-color);
}

.action-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--white-color);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.return-btn {
    background: var(--secondary-color);
    color: white;
}

.draft-btn {
    background: var(--primary-color);
    color: var(--dark-color);
}

.total-sales {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--custom-btn-bg-color);
}

/* footer Styles */
footer {
    background: var(--site-footer-bg-color);
    color: var(--white-color);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--white-color)
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* filter Styles */
.filter-row {
    background: var(--section-bg-color);
    padding: 15px;
    border-radius: var(--border-radius-medium);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-btn {
    background: var(--custom-btn-bg-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: all 0.3s;
    height: 38px;
}

.filter-btn:hover {
    background: #008f4d;
}

.reset-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: all 0.3s;
    height: 38px;
}

.reset-btn:hover {
    background: #e03f1a;
}

/* Layout Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 0 0 50%;
    padding: 0 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .admin-sidebar {
        width: 70px;
    }

    .sidebar-menu {
        position: sticky;
    }
    
    .sidebar-menu span {
        display: none;
    }
    
    .sidebar-menu i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .logo-upload-container,
    .image-upload-container {
        flex-direction: column;
    }

    .camera-container {
        height: 300px;
    }
    
    .pos-container,
    .hoard-container {
        flex-direction: column;
    }
    
    .user-info-row, .action-buttons-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .search-controls-row .col-md-4,
    .search-controls-row .col-md-2,
    .search-controls-row .col-md-3 {
        margin-bottom: 10px;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    
    .sidebar-menu li {
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    /* filter Styles */

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn, .reset-btn {
        width: 100%;
    }
    
    .sidebar-menu span {
        display: none;
    }
    
    .form-row .form-group {
        flex: 0 0 100%;
    }
    
    .product-grid,
    .hoard-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
    }

    .camera-container {
        height: 250px;
    }
    
    .camera-controls {
        flex-wrap: wrap;
    }

    .account-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .social-buttons {
        flex-direction: column;
    }
}

/* Compact Card Styles for Dashboard and Reports */
.compact-card {
    padding: 15px;
    margin-bottom: 0;
    height: 90px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    border-radius: var(--border-radius-medium);
}

.compact-card:hover {
    transform: translateY(-2px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.2rem;
    color: white;
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 2px;
    line-height: 1;
    color: var(--dark-color);
}

.card-label {
    font-size: 0.75rem;
    color: var(--p-color);
    font-weight: 500;
}

/* Background color classes for card icons */
.bg-primary { background: var(--primary-color); }
.bg-success { background: var(--custom-btn-bg-color); }
.bg-warning { background: var(--secondary-color); }
.bg-info { background: #17a2b8; }
.bg-danger { background: #dc3545; }
.bg-secondary { background: #6c757d; }
.bg-dark { background: var(--site-footer-bg-color); }

.tooplate-green-bg {
    background: var(--custom-btn-bg-color);
}




