@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #F5F6FA;
}

.background {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url(pic/bg1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.background-login,
.background-menu {
    background: linear-gradient(135deg, #6B4226 0%, #bcc5ee 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ccc; 
}

.header nav {
    display: flex;
    margin: 10px;
    padding-top: 10px;
    gap: 20px;
    align-items: flex-end;
    justify-content: flex-end;
}

.header nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s;
}

.header nav a:hover {
    color: #747272;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.3s ease-in-out;
}

.header nav a:hover::after {
    width: 100%;
}

.header nav a.active::after {
    width: 100%;
}

.header .user-icon {
    text-decoration: none;
    font-size: 35px;
    cursor: pointer;
    padding-right: 50px;
    color: white;
}

.user-icon a {
    color: white;
}

.rush {
    margin: 0%;
    font-style: ;
    text-align: center;
    color: #ecebe9;
}

.rush img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ccc; 
    margin-top: 100px;
    
}

.rush p {
    font-size: 70px;
    font-weight: bold;
    margin-bottom: 0%;
    margin-top: 20px;
}

.login-btn {
    background: black;
    color: white;
    
}

.center-login {
    text-align: center;
    margin-top: 40px;
}

.home-login-btn {
    padding: 10px 25px;
    background: #000; 
    color: #fff;
    text-decoration: none;
    border-radius: 0%;
}

.home-login-button:hover {
    opacity: 0.9;
}

/* Menu 

.background-Menu {
  background-color: white;  
}

.header-menu {
    position: sticky;
    top: 0%;
    background-color: #4d3115; 
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.header-menu .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-menu .logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ccc; 
}

.header-menu nav {
    display: flex;
    gap: 20px;
    padding-left: 700px;
}

.header-menu nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s;
}

.header-menu nav a:hover {
    color: #747272;
}

.header-menu nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.3s ease-in-out;
}

.header-menu nav a:hover::after {
    width: 100%;
}

.header-menu nav a.active::after {
    width: 100%;
}

.header-menu .user-icon {
    font-size: 35px;
    cursor: pointer;
    padding-right: 50px;
}


.featured-section {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    margin-top: 10px;
}

.featured-title {
    display: inline-block;
    background: #5b421f;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    
}

.category-title {
    margin-top: 25px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    font-style: italic;
}

/* MENU GRID 
.menu-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.menu-card {
    text-align: center;
}

.menu-card img {
    width: 120px;
    height: 120px;
    background: #d9f0fe; 
    border-radius: 5px;
}

.menu-card p {
    font-size: 14px;
    margin-top: 8px;
    font-weight: bold;
}

.featured-title-two {
    display: inline-block;
    background: #5b421f;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    
}

.category-title-two {
    margin-top: 25px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    font-style: italic;
}

/* About

.about {
   padding-left: 100px;
   margin: 50px;
}

.about h2 {
    margin-bottom: 50px;
}

.about p {
    margin-bottom: 50px;
}

footer{
    margin-top: 180px;
    background: black;
    height: 200px;
    width: auto;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
   
}

.footer-content h3{
    font-size: 20px;
    text-transform: capitalize;
    color: white;
    margin-bottom: 0;
}

.footer-content p{
    font-size: 15px;
    color: white;
}

.socials{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 10px 0;
}

.socials li{
    margin: 0 10px;
    
}

.socials a{
    text-decoration: none;
    color: white;
}

.socials a i{
    font-size: 20px;
    transition: 0.3s;
}

.socials a:hover i{
    color: rgb(37, 23, 4);
}

.footer-bottom{
    background: transparent;
    width: auto;
    color: white;
    text-align: center;

}

.footer-bottom span{
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}


/* Login*/ 

.header-login {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 10px;
}

.header-login .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-right: 20px;
}

.header-login nav {
    display: flex;
    margin: 10px;
    padding-top: 10px;
    gap: 20px;
    
}

.header-login nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.4s;
}

.header-login nav a:hover {
    color: #747272;
}


.header-login .user-icon {
    text-decoration: none;
    font-size: 35px;
    cursor: pointer;
    color: white;
   
}

.user-icon a {
    color: white;
}

.admin-container {
    text-align: center;
    margin-top: 100px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 100px auto;
    padding: 0 15px;
}

.login-container.wide {
    max-width: 600px;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px 30px;
}

.login-card h2 {
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-box {
    display: none;
}

.form-box.active {
    display: block;
}

label {
    width: 100%;
    text-align: left;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-box {
    width: 100%;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    outline: none;
}

.links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
    margin-bottom: 20px;
}

.links a {
    font-size: 13px;
    color: #444;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.login-btn {
    background: #3FA34D;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

.login-btn:hover {
    opacity: 0.8;
}

.success-message {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 14px;
}

.warning-message {
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 14px;
}

.lock-message {
  color: #004085;
  background: #cce5ff;
  border: 1px solid #b8daff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 14px;
}

.error-message {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 14px;
}

/* Register Account

.create-container {
    text-align: center;
    margin-top: 40px;
}

.create-container h2 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label-row {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.label-row label {
    font-size: 14px;
    font-weight: bold;
}

.role-select {
    padding: 3px;
    border-radius: 5px;
    border: 1px solid #333;
}

label {
    width: 300px;
    text-align: left;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-box, select {
    width: 300px;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

.create-btn {
    background: #3FA34D;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 60px;
}

.create-btn:hover {
    opacity: 0.8;
} */

/* Admin Dashboard*/

body {
    background: #f4f6f8;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* center main content area and add padding */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.sidebar {
    width: 230px;
    background: #6B4226;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
}

.logo {
    text-align: center;
    display: flex;
}
.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50px ;
}
.logo h4 {
    margin-top: 5px;
    padding-top: 10px;
}

.role {
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.profile {
    text-align: center;
    margin-top: 10px;
    padding-bottom: 20px;
}


.profile h3 {
    margin: 10px 0 0;
    font-size: 15px;
}
.profile p {
    font-size: 15px;
    
}

.menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-left: 10px;
}
.menu li {
    padding: 10px 0;
}
.menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}
.logout {
    color: #ffdddd;
}

.content {
    /* leave space for fixed sidebar */
    margin-left: 230px;
    padding: 30px;
    /* flex growth to fill remaining width */
    flex: 1;
    min-width: 0; /* ensures content can shrink correctly inside flex container */
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #F5F6FA;
}

.welcome {
    font-size: 28px;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.dash {
    font-weight: bold;
    font-size: 30px;
}

.section-title {
    font-weight: bold;
    font-size: 22px;
    margin: 30px 0 15px;
    padding-top: 20px;
    color: #222;
}

/* notification bell */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}

.notification-container i,
.notes-container i {
    font-size: 22px;
    cursor: pointer;
    color: #2c3e50;
    transition: transform 0.15s ease, color 0.15s ease;
}

.notification-container:hover i,
.notes-container:hover i {
    transform: scale(1.08);
    color: #2d6cdf;
}

.notif-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.notif-dropdown.show {
    display: block;
}

.notif-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.notif-item.unread {
    background: rgba(0, 123, 255, 0.07);
}

.notif-item.critical {
    color: red;
    font-weight: bold;
}

.notif-item.low {
    color: orange;
}

/* notes dropdown and icon styles */
.notes-container {
    display:inline-block;
    position:relative;
    margin-left:10px;
}

.notes-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: blue;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.notes-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.notes-dropdown.show {
    display: block;
}

.note-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    position: relative;
}

.note-item .delete-note {
    position: absolute;
    right: 8px;
    top: 8px;
    background: none;
    border: none;
    color: red;
    font-weight: bold;
    cursor: pointer;
}

.notes-body textarea {
    width: calc(100% - 25px);
    margin: 8px 12px;
}

.notes-body button {
    margin: 8px 12px;
    padding: 4px 8px;
}

/* System Update / Notification page */
.page-card {
    max-width: 760px;
    margin: 40px auto;
    background: white;
    border-radius: 18px;
    padding: 30px 30px 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-card h1 {
    font-size: 26px;
    letter-spacing: -0.6px;
    margin: 0;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 22px;
    font-weight: 500;
}

.alert-success {
    background: #effaf0;
    border-color: rgba(46, 204, 113, 0.4);
    color: #1e6e3a;
}

.alert-error {
    background: #f9ebec;
    border-color: rgba(231, 76, 60, 0.3);
    color: #a92f2f;
}

.form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: #fbfbfb;
}

.form-control:focus {
    outline: none;
    border-color: rgba(45, 108, 223, 0.9);
    box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.12);
    background: white;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(135deg, #2d6cdf 0%, #4d84ff 100%);
    color: white;
    box-shadow: 0 14px 24px rgba(45, 108, 223, 0.25);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(45, 108, 223, 0.3);
}

.button-secondary {
    background: transparent;
    color: #2d6cdf;
    font-weight: 600;
}

.button-secondary:hover {
    text-decoration: underline;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.radio-inline input[type="radio"] {
    accent-color: #2d6cdf;
}

.radio-inline:hover {
    background: rgba(45, 108, 223, 0.08);
    border-color: rgba(45, 108, 223, 0.3);
}

.radio-inline input[type="radio"]:checked + span {
    font-weight: 700;
}

.admin-chart-box {
    display: flex;
    gap: 25px;
    border: none;
    padding: 25px;
    background: #FFFFFF;
    margin-bottom: 40px;
    align-items: flex-start;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.background-dashboard {
    background: linear-gradient(135deg, #f2f6ff 0%, #ffffff 65%, #fbfbff 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

    .chart-placeholder {
        width: 60%;
        min-width: 0;
        height: auto;
        min-height: 600px;
        background: #FFFFFF;
        border-radius: 12px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        font-weight: bold;
        padding: 0;
        overflow: visible;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
    }

    .top-product {
        width: 40%;
        min-width: 0;
        text-align: center;
        padding: 25px;
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        flex-shrink: 0;
        border: none;
        box-sizing: border-box;
    }

.top-product img {
    width: 200px;
    height: 200px;
}
.top-product span {
    display: block;
    text-align: center;
    margin-top: 5px;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin: 50px 0 30px 0;
    clear: both;
}

.stat-card {
    background: #FFFFFF;
    border: none;
    padding: 20px;
    width: 200px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.scroll-section {
    margin-top: 20px;
    padding-bottom: 100px;
}

.table-box {
    background: #FFFFFF;
    padding: 10px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #6B4226;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.critical {
    color: red;
    font-weight: bold;
}

.low {
    color: orange;
}


/* menu management*/

.tabs {
    display: flex;
    gap: 12px;
    margin: 15px 0 25px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    background: #FFFFFF;
    border: 1px solid #6B4226;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: #6B4226;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.tab:hover {
    background: #f0e6dc;
}

.tab.active {
    background: #6B4226;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}


.add-btn-container {
    margin: 20px 0 30px;
    padding-top: 0;
    display: flex;
    justify-content: flex-start;
}
.add-btn {
    background: linear-gradient(135deg, #6B4226 0%, #8B5A3A 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.add-btn i {
    margin-right: 4px;
}


.active-a {
    position: relative;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(90deg, #6B4226 0%, #8B5A3A 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(107, 66, 38, 0.15);
    padding: 10px 5px;
    transition: background 0.3s, color 0.3s;
    z-index: 1;
    overflow: hidden;
}
.active-a::after {
    content: '';
    position: absolute;
    left: 20%;
    bottom: 6px;
    
    height: 3px;
    background: #fffbe6;
    border-radius: 2px;
    box-shadow: 0 1px 6px #8B5A3A;
    z-index: 2;
}
.menu a.active-menu:hover {
    background: linear-gradient(90deg, #8B5A3A 0%, #6B4226 100%);
    color: #fffbe6;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    width: 410px;
    padding: 25px;
    border-radius: 12px;
    margin: 5% auto;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-content label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

.modal-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.modal-actions .cancel {
  background: #ccc;
}


.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.menu-card {
    background: #FFFFFF;
    border: none;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.menu-card img {
    width: 100%;
    height: 150px;
    background: #e7e7e7;
    border-radius: 12px;
    object-fit: cover;
}

.menu-card h3 {
    margin: 12px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.menu-card .price {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    background: rgba(255,215,0,0.2);
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.edit, .delete {
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.edit { 
    background: #3FA34D; 
    color: white;
}

.delete { 
    background: #dc3545; 
    color: white;
}

.edit-small, .delete-small {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.edit-small { background: #cfa96b; }
.delete-small { background: #d66; }


/* Inventory page*/

.container {
    display: flex;
    width: 100%;
}

/* MAIN CONTENT */
.main-content {
    padding: 30px 50px;
    width: 100%;
    margin-left: 250px;
}

.main-content h1 {
    margin-bottom: 20px;
    font-size: 32px;
}

/* SUMMARY CARDS */
.inventory-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.inv-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inv-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

/* ACTION BUTTONS */
.inv-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #6B4226;
    color: white;
    height: 40px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-secondary {
    background: #e5e5e5;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: .85;
}

/* CATEGORY FILTER BUTTONS */
.category-filters {
    margin: 15px 0;
}

.category-btn {
    background: #FFFFFF;
    color: #6B4226;
    padding: 8px 16px;
    border: 2px solid #6B4226;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #6B4226;
    color: white;
}

.category-btn.active {
    background: #6B4226;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #6B4226;
    padding: 12px;
    text-align: left;
    color: white;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* STATUS TAGS */
.tag {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: white;
}

/* VARIANCE STYLES */
.variance-positive {
    color: #2e7d32; /* dark green */
    font-weight: bold;
}
.variance-negative {
    color: #c62828; /* dark red */
    font-weight: bold;
}

.tag.low {
    background: #d88f1f;
}

.tag.critical {
    background: #d9534f;
}

.tag.good {
    background: #5cb85c;
}

/* ACTION BUTTON */
.btn-edit {
    background: #3FA34D;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    opacity: .85;
}


/* Sales page */

/* --- MAIN CONTENT PAGE TITLE --- */
.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- SUMMARY CARDS --- */
.cards-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-card {
    width: 230px;
    border: none;
    padding: 20px;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-card .value {
    font-size: 24px;
    margin-top: 10px;
    font-weight: bold;
    color: #5b3a29;
}

/* --- REPORT GENERATOR --- */
.report-generator-box {
    margin-bottom: 25px;
    padding: 20px;
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-gen-title {
    margin: 0 0 18px 0;
    font-size: 18px;
}

.report-generator-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.period-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    margin-right: auto;
}

.period-label {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
}

.period-tabs {
    display: flex;
    gap: 10px;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    white-space: nowrap;
}

.period-tabs .period-btn {
    padding: 10px 18px;
}

.period-input-wrap {
    display: flex;
    align-items: flex-end;
    min-width: 180px;
    margin-left: 40px;
}

.period-input-group {
    display: none;
}

.period-input-group:not(.hidden) {
    display: block;
}

.period-input-group.hidden {
    display: none !important;
}

.period-input-group label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.period-input-group input {
    padding: 8px 10px;
    width: 170px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 14px;
}

.generate-wrap {
    margin-left: auto;
}

.generate-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.generate-report-btn i {
    font-size: 18px;
}

.value-small {
    font-size: 14px !important;
}

.table-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.table-loading.hidden {
    display: none !important;
}

.no-data {
    text-align: center;
    color: #888;
    padding: 24px !important;
}

/* --- FILTER SECTION --- */
.filter-box {
    margin: 25px 0;
    padding: 15px;
    display: flex;
    background: #FFFFFF;
    border-radius: 10px;
    align-items: flex-end;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-box label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.filter-box input,
.filter-box select {
    padding: 6px 10px;
    width: 150px;
    border-radius: 6px;
    border: 1px solid #bbb;
}

.filter-btn {
    background: #3FA34D;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.filter-btn:hover {
    background: #2e7d32;
}

/* --- CHART PLACEHOLDER --- */
.chart-box {
    margin-top: 10px;
    background: #FFFFFF;
    padding: 32px 32px 32px 32px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.chart-desc {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-container {
    position: relative;
    min-height: 320px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.chart-container canvas {
    max-height: 320px;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-sizing: border-box;
}

.chart-placeholder {
    height: 300px;
    margin-top: 10px;
    background: #eaeaea;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 18px;
    font-style: italic;
}

/* --- SALES ANALYTICS --- */
.analytics-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    align-items: flex-start;
}

.analytics-card {
    flex: 1;
    min-width: 310px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.06);
}

.analytics-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
}

.analytics-table th {
    background: rgba(107, 66, 38, 0.08);
    color: #4a4a4a;
    font-weight: 600;
}

.analytics-table tr:last-child td {
    border-bottom: none;
}

/* --- SALES TABLE --- */
.sales-table-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.sales-table-header .section-title {
    margin: 0;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-buttons.hidden {
    display: none !important;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    background: #3FA34D;
    color: white;
}

.export-btn:hover {
    opacity: 0.9;
}

.export-excel {
    background: #217346;
    color: white;
}

.export-pdf {
    background: #c41e3a;
    color: white;
}

.section-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 26px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f3f3f3;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background: #f6f6f6;
}


/* Audit trail page */ 

/* --- AUDIT TRAIL PAGE STYLES --- */

.filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.filters input,
.filters select {
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filters form {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end; 
    width: 100%;
}

.filter-btn {
    padding: 8px 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filter-btn:hover {
    background: #43A047;
    
}

.table-section {
    border: 2px solid;
    border-radius: 10px;
}

.table-section table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table-section th {
    background: #4A4A4A;
    color: white;
    padding: 12px;
    text-align: left;
}

.table-section td {
    padding: 12px;
    border-bottom: 1px solid #e4e4e4;
}

.table-section tr:hover {
    background: #f3f3f3;
}


/* Users page */ 

/* ---- USERS PAGE ---- */

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}


.search-form input,
.search-form select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filter-btn {
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filter-btn:hover {
    background: #3d8b40;
}

.add-btn {
    padding: 10px 20px;
    width: 150px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.add-btn:hover {
    background: #1976D2;
}

.edit-btn,
.delete-btn {
    padding: 5px 8pxpx;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.edit-btn {
    background: #3FA34D;
    color: white;
}

.edit-btn:hover {
    background: #2e7d32;
}

.delete-btn {
    background: #F44336;
    color: white;
}

.delete-btn:hover {
    background: #D32F2F;
}

.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    background: #C8E6C9;
    color: #256029;
}

.status.inactive {
    background: #FFCDD2;
    color: #B71C1C;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    vertical-align: top;
}
    

.form-actions .cancel-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.form-actions .cancel-btn:hover {
    background-color: #5a6268;
}

/* Barista */

:root {
  --brown: #6d4c2c;
  --cream: #fff9f2;
  --card: #f7efe6;
  --ok: #5bbd7a;
  --warn: #f6b65b;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, Arial;
  margin: 0;
  background: linear-gradient(180deg, var(--cream), #fff);
  color: #2b2b2b;
}

header {
  background: var(--brown);
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  margin: 0;
  font-size: 18px;
}

.wrap {
  padding: 18px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.column {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(80, 50, 20, 0.06);
}

.column h2 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--brown);
  text-align: center;
  padding: 8px;
  background: rgba(109, 76, 44, 0.1);
  border-radius: 6px;
}

.orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ticket h3 {
  margin: 0 0 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket p {
  margin: 4px 0;
  color: #555;
  font-size: 14px;
}

.items {
  background: #fafafa;
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.items li {
  padding: 6px 4px;
  border-bottom: 1px dashed #eee;
  list-style: none;
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--brown);
  color: white;
  cursor: pointer;
  font-size: 12px;
  min-width: 60px;
  text-align: center;
}

.btn.secondary {
  background: var(--warn);
  color: #2b2b2b;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.preparing {
  background: #fcecd8;
  color: #ad6b2a;
}

.ready {
  background: #e8f9ee;
  color: #1b7a3f;
}

.completed {
  background: #eef2f3;
  color: #77838a;
}

.in-queue .status {
  background: #f0f0f0;
  color: #666;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

/* Global responsive tweaks */
@media (max-width: 1100px) {
  .content {
    padding: 20px;
  }
  .chart-box {
    flex-direction: column;
  }
  .stats-row {
    flex-direction: column;
  }
  .chart-placeholder {
    min-height: 400px;
  }
  .top-product {
    width: 100%;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px 20px;
  }
  .content {
    margin-left: 0;
    padding: 20px;
  }
  .notification-container,
  .notes-container {
    margin-left: 0;
    margin-top: 10px;
  }
  .chart-box {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .header .logo,
  .header-menu .logo,
  .header-login .logo {
    justify-content: center;
  }
  .header .user-icon,
  .header-login .user-icon {
    padding-right: 0;
  }
  .login-container label,
  .input-box,
  .links {
    width: 100%;
    max-width: 400px;
  }
  .modal-content {
    width: 95%;
    max-width: 420px;
    margin: 10% auto;
  }
  .table-box {
    overflow-x: auto;
  }
  .table-box table {
    min-width: 600px;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-box {
    flex-direction: column;
  }
  .filter-box input,
  .filter-box select {
    width: 100%;
  }
  .sales-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .export-buttons {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
