body {
    font-family: Arial, sans-serif;
    background-color: #faf3e0; 
    color: #333; 
    margin: 0;
    padding: 20px;
    /*user-select: none;*/
}

h1 {
    text-align: center;
    font-size: 50px;
    color: #e67e22; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
    position: sticky;
    top: 0;
    z-index: 1000; 
    padding: 15px 0;
    margin: 0;
    margin-bottom: -18px;
    background-size: auto;
    text-shadow: 
        3px 3px 0 #d35400,
        6px 6px 0 rgba(0,0,0,0.1);

    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #faf3e0; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); 
}

th {
    background-color: #e67e22; 
    color: #ffffff;
    font-size: 20px;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 120px;
    z-index: 999;
    
}

/* TD za kawaida */
td {
    padding: 12px;
    text-align: center;  
    border-bottom: 1px solid #ddd;
    vertical-align: top; 
}

/* Paragraphs ndani ya TD */
td p {
    display: inline-block;  
    text-align: left;      
    margin: 0;             
}



tr:hover {
    background-color: #fde3a7; 
    transition: background-color 0.3s ease;
}

#dayparagraph {
    position: absolute;
}

.zebraparagraph {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    color: #e67e22; 
}

.descparagraph {
    color: #555; 
    font-weight: 700;
}

.foodparagraph {
    color: #e67e22; 
    font-weight: 700;
}

.category {
    position: sticky;
    top: 150px; 
    z-index: 998;
    background-color: #e67e22; 
    margin: 0;
    padding: 15px;
    border-top: 2px solid #d35400;
    border-bottom: 2px solid #d35400;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Weka mstari katikati kwa siku zilizopita au zisizofika */
.strikethrough {
    text-decoration: line-through;
    color: #ffffff;
    opacity: 0.7;
    font-style: italic;
}

/* Mtindo wa kuficha chakula cha kategoria zilizopita au zisizofika */
.menu-day {
    display: none; /* Ficha chakula kwa default */
}

.menu-day[data-day="SUNDAY"],
.menu-day[data-day="MONDAY"],
.menu-day[data-day="TUESDAY"],
.menu-day[data-day="WEDNESDAY"],
.menu-day[data-day="THURSDAY"],
.menu-day[data-day="FRIDAY"],
.menu-day[data-day="SATURDAY"] {
    display: table-row; /* Onyesha chakula cha siku ya leo */
}

/* Style ya vifungo vilivyodisabled */
.disabled-button {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
}

.disabled-button:hover {
    transform: none !important;
    background-color: #cccccc !important;
}

/* Mtindo wa simu */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }

    img {
        width: 100%;
        height: auto;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

#menu-table td[data-label="chakula"] p {
    animation: bounce 1s ease infinite;
}

/*inasadia kufanya kazi vizuri kwenye simu na tablet*/
@media (max-width: 768px) {
    #menu-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 120px;
    }
}

.circular-image-container {
    width: 180px;  
    height: 180px;
    border-radius: 50%;  
    overflow: hidden;  
    border: 3px solid #e67e22;  
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;  
    
}

.circular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    transition: transform 0.3s ease;
}

.circular-image:hover {
    transform: scale(1.1); 
    
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.circular-image-container:hover {
    animation: rotate 25s linear infinite;  
}

.order-button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #e67e22; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.order-button:hover {
    background-color: #d35400; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Overlay ya Order Popup */
.order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

/* Popup Container */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

/* Popup Content */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #333;
}

#message{
    font-size: 18px;
    font-weight: bold;
    color: #DAD1B7;
}

/* OK Button */
.ok-button {
    padding: 10px 30px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s;
}

.ok-button:hover {
    background: #d35400;
}

/* Picha ya Mhudumu */
#delivery-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px 0;
}

/* Countdown Text */
#order-countdown {
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}


/* POPUP YA JUMATATU */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: all; /* Disable clicks outside */
    /*user-select: none;*/
}

.popup-box {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    animation: pulse 2s infinite;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 100%;
    background: red;
    animation: progressAnimation 86400s linear; 
}

@keyframes progressAnimation {
    0% { width: 100%; }
    100% { width: 0%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.delivery-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    border-radius: 30px; 
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3); 
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Nafasi kati ya icon na maandishi */
    
}

.delivery-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d35400, #e67e22);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delivery-button:hover {
    transform: translateY(-2px); /* Kuinuka kidogo */
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.4); 
}

.delivery-button:hover::before {
    opacity: 1; 
}

.delivery-button:active {
    transform: translateY(3px); /* Kushuka kidogo wakati kubonyeza */
}

/* Ikiwa unatumia icon */
.delivery-button i {
    font-size: 18px;
}

/* Animation ya pulse kwa attention */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.delivery-button.pulse {
    animation: pulse 2s infinite;
}


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1200;
    display: none;
}

/* Modal Forms */
.modal-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    z-index: 1201;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 30%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1002;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Form Styles */
.modal-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    color: #333;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.modal-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.modal-form button[type="submit"]:hover {
    background: #d35400;
}



/* Container ya kichwa */
.menu-header {
    position: relative;
    text-align: center;
    padding: 15px 0;
    margin: 0;
}

/* Toggle Button Styles */
#toggle-menu {
    background: #e67e22;
    color: white;
    border: none;
    right: 20px;
    border-radius: 20px;
    border: 2px solid #ffffff;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-left: auto; /* Inasogeza kitu kulia */
    order: 2; /* Inaweka kitu kwa kulia */
}

#toggle-menu:hover {
    background: #d35400;
    transform: translateY(-2px);
}

#toggle-menu i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-header {
        padding: 10px 15px;
    }
    
    #toggle-menu {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.ripple-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,140,0,0.4) 10%, transparent 10.01%);
    animation: ripple-animation 1s ease-out;
    pointer-events: none;
    border-radius: 9999px;
    z-index: 0;
}

@keyframes ripple-animation {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}


#current-day {
    color: #e67e22;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Modal ya Uthibitisho wa order */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #ccc;
  color:#333;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: modalFade 0.3s;
}

@keyframes modalFade {
  from {opacity: 0; transform: translateY(-20px)}
  to {opacity: 1; transform: translateY(0)}
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.confirm-btn {
  background: #2ecc71;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-btn {
  background: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.close-modal {
  color: #e74c3c;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}




/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode #menu-container {
    background-color: #1e1e1e;
}

.dark-mode table {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #444;
}

.dark-mode th {
    background-color: #333;
    color: #ff9800;
}

.dark-mode tr:hover {
    background-color: #383838 !important;
}

.dark-mode .category {
    background-color: #ff9800;
    color: #121212;
}

.dark-mode .descparagraph {
    color: #ffffff;
}

.dark-mode .order-button, 
.dark-mode .delivery-button {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dark-mode-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    order: 1; /*inaweka kitu kushoto*/
}

.dark-mode-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

body.dark-mode .dark-mode-btn {
    background: #ff9800;
    color: #121212;
}

body.dark-mode .dark-mode-btn:hover {
    background: #ffab40;
}

/* Payment processing animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.payment-processing {
    animation: pulse 1s infinite;
}

/* Phone Modal Styles - Simple & Clean */
.phone-modal {
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-modal-content {
    background: white;
    width: 90%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.phone-modal-header {
    background: #e67e22;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.phone-modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.phone-modal-close:hover {
    opacity: 1;
}

.phone-modal-body {
    padding: 20px;
}

.phone-modal-body p {
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.phone-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.phone-input:focus {
    outline: none;
    border-color: #e67e22;
}

.phone-hint {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.phone-modal-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.phone-submit-btn {
    flex: 1;
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.phone-submit-btn:hover {
    background: #d35400;
}

.phone-cancel-btn {
    flex: 1;
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.phone-cancel-btn:hover {
    background: #e0e0e0;
}