﻿/* Font Face for Quesha */
@font-face {
    font-family: 'Quesha';
    src: url('./quesha-font/Quesha-gndR.ttf') format('truetype');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quesha', cursive;
    background: linear-gradient(135deg, #2c1810, #5c3d2e, #8b6f47, #d4a574);
    background-attachment: fixed;
    color: #2c1810;
    min-height: 100vh;
    padding: 0;
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    color: #ffd89b;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.coffee-icon {
    font-size: 2rem;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dashboard-header h1 {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 2px;
    font-weight: normal;
}

.subtitle {
    font-family: 'Quesha', cursive;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.9;
    font-style: italic;
}

.header-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid #d4a574;
    border-radius: 10px;
    padding: 8px 15px;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-family: 'Quesha', cursive;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: normal;
    color: #ffd89b;
}

.stat-label {
    display: block;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    opacity: 0.9;
    margin-top: 2px;
}

.active-stat {
    border-color: #4CAF50;
}

.active-stat .stat-number {
    color: #4CAF50;
}

.completed-stat {
    border-color: #2196F3;
}

.completed-stat .stat-number {
    color: #2196F3;
}

/* Orders Section */
.orders-section {
    flex: 1;
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

#ordersContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.order-card-Chef {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #e0d0b8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.order-card-Chef:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.order-card-Chef.new-order {
    border-color: #4CAF50;
    animation: pulse-border 1s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: #4CAF50; }
    50% { border-color: #81C784; }
}

.order-card-Chef.completed {
    opacity: 0.7;
    border-color: #2196F3;
}

.order-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.order-status-badge.active {
    background: #4CAF50;
    color: white;
}

.order-status-badge.completed {
    background: #2196F3;
    color: white;
}

.order-header-Chef {
    margin-bottom: 15px;
}

.order-number-Chef {
    font-family: 'Quesha', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    color: #ffffff;
    background: linear-gradient(135deg, #d4a574, #ffd89b);
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
}

.order-time {
    font-size: 1.1rem;
    color: white;
    margin-top: 8px;
}

.order-item-info {
    margin: 15px 0;
    padding: 15px;
    background: rgba(92, 61, 46, 0.6);
    border-radius: 10px;
    border-left: 4px solid #d4a574;
}

.item-name-Chef {
    font-family: 'Quesha', cursive;
    font-size: 1.9rem;
    font-weight: normal;
    color: #ffd89b;
    margin-bottom: 8px;
}

.item-price-Chef {
    font-size: 1.3rem;
    color: #d4a574;
    font-weight: bold;
}

.customer-info-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 4px solid #d4a574;
}

.customer-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 1.4rem;
    color: #fff;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #d4a574;
}

.customer-detail strong {
    min-width: 80px;
    color: #fff;
    font-weight: normal;
}

.special-instructions {
    margin: 12px 0;
    padding: 14px;
    background: rgba(92, 61, 46, 0.8);
    border-radius: 8px;
    font-size: 1.15rem;
    font-style: italic;
    color: #ffd89b;
    border-left: 3px solid #d4a574;
}

.countdown-Chef {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.countdown-Chef.ready {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    animation: pulse-ready 1s infinite;
}

@keyframes pulse-ready {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.countdown-time-Chef {
    font-family: 'Quesha', cursive;
    font-size: 3rem;
    display: block;
    margin: 5px 0;
    font-weight: normal;
}

.countdown-label-Chef {
    font-size: 1.1rem;
    opacity: 0.9;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-ready-btn {
    background: #4CAF50;
    color: white;
}

.mark-ready-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.mark-ready-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.remove-order-btn {
    background: #f44336;
    color: white;
}

.remove-order-btn:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.view-details-btn {
    background: #2196F3;
    color: white;
}

.view-details-btn:hover {
    background: #0b7dda;
    transform: translateY(-2px);
}

/* Role Selection Styles */
.role-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.role-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: 3px solid #d4a574;
    border-radius: 12px;
    font-size: 1.3rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-role-btn {
    padding: 10px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.back-role-btn:hover {
    background: #555;
}

.manager-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    color: #ffd89b;
    font-weight: normal;
}

.empty-state p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.8;
    color: #fff;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-details-content {
    max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-section {
        padding: 20px 15px;
    }

    #ordersContainer {
        grid-template-columns: 1fr;
        gap: 15px;
        color: #fff;
    }

    .order-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .coffee-icon {
        font-size: 2rem;
    }

    .header-stats {
        width: 100%;
    }

    .stat-card {
        flex: 1;
        min-width: auto;
        padding: 10px 15px;
    }
}

.signature {
    font-family: 'Quesha', cursive;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #ffd89b;
    opacity: 0.95;
    margin: 0;
    font-weight: normal;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c1810, #5c3d2e, #8b6f47, #d4a574);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    border: 3px solid #d4a574;
    max-height: 90vh;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
}

.login-header h1 {
    font-family: 'Dancing Script', cursive, serif;
    font-size: 2rem;
    color: #3e2723;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Dancing Script', cursive, serif;
    font-size: 1.1rem;
    color: #3e2723;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Dancing Script', cursive, serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 10px rgba(139, 111, 71, 0.2);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Dancing Script', cursive, serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-error {
    margin-top: 15px;
    text-align: center;
    color: #f44336;
    font-weight: bold;
    font-size: 0.95rem;
    min-height: 20px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 2px solid #d4a574;
    padding-top: 15px;
}

.home-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: 2px solid #1976D2;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Dancing Script', cursive, serif;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
.login-container::-webkit-scrollbar {
    width: 8px;
}

.login-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.login-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4a574, #8b6f47);
    border-radius: 10px;
}

.login-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b6f47, #5c3d2e);
}

/* Chef Login Info Box */
.Chef-login-info {
    background: linear-gradient(135deg, #f5e6d3, #fff);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #d4a574;
    display: none;
}

.Chef-login-info p {
    margin: 0 0 10px 0;
    color: #3e2723;
    font-weight: bold;
}

.Chef-login-info p:nth-child(2) {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.Chef-login-info p:nth-child(3) {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Form Group Small Text */
.form-group small {
    color: #999;
    display: block;
    margin-top: 5px;
}

/* Hidden Form */
.hidden-form {
    display: none;
}

.hidden-form.show {
    display: block;
}

/* Role Selector Title */
.role-selector-title {
    text-align: center;
    margin-bottom: 20px;
    color: #5c3d2e;
    font-weight: bold;
}

/* Modal Header Styling */
.modal-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    color: #ffd89b;
    font-size: 2rem;
    cursor: pointer;
}

/* Modal Body Styling */
.modal-body {
    padding: 25px;
    color: #fff;
}
.modal-body p {
    margin-bottom: 15px;
    font-size: 1rem;
}
.orderDetailsBody {
    max-height: 400px;
    overflow-y: auto;
    color: #fff;
}

/* Add Chef Section */
.add-Chef-section {
    background: linear-gradient(135deg, #f5e6d3, #fff);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #d4a574;
}

.add-Chef-section h3 {
    margin: 0 0 15px 0;
    color: #3e2723;
    font-size: 1.1rem;
}

.add-Chef-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    box-sizing: border-box;
}

.add-Chef-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-Chef-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

/* Modal Divider */
.modal-divider {
    text-align: center;
    margin: 25px 0;
    color: #999;
}

.modal-divider span {
    background: white;
    padding: 0 10px;
}

.modal-divider hr {
    border: 1px solid #d4a574;
    margin-top: -15px;
}

/* Active Chefs Section */
.active-Chefs-section h3 {
    margin: 0 0 15px 0;
    color: #3e2723;
    font-size: 1.1rem;
}

.Chef-list-modal {
    max-height: 300px;
    overflow-y: auto;
}

.loading-Chefs {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Modal Footer */
.modal-footer {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    border-top: 2px solid #e0d0b8;
    padding-top: 15px;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.modal-cancel-btn {
    background: #999;
    color: white;
}

.modal-cancel-btn:hover {
    background: #888;
}

.modal-done-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.modal-done-btn:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
}

/* Order Assignment Modal */
.assignment-order-info {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5e6d3, #fff);
    border: 2px solid #d4a574;
    border-radius: 12px;
    border-left: 5px solid #d4a574;
}

.Chef-selection-section {
    background: linear-gradient(135deg, #f9f1e6, #fff);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e8d7c3;
}

.Chef-selection-section label {
    font-weight: bold;
    color: #3e2723;
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.Chef-selection-section select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.1rem;
    background: white;
    color: #3e2723;
    cursor: pointer;
    transition: all 0.3s ease;
}

.Chef-selection-section select:hover {
    border-color: #8b6f47;
}

.modal-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    border-top: 2px solid #e0d0b8;
    padding-top: 20px;
}

.modal-action-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.modal-action-cancel {
    background: #999;
    color: white;
}

.modal-action-cancel:hover {
    background: #888;
}

.modal-action-assign {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.modal-action-assign:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Manager Orders Grid */
.manager-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

.manager-orders-section h2,
.manager-Chefs-section h2 {
    color: #3e2723;
    margin-bottom: 15px;
}

.Chefs-list-container {
    border: 2px solid #d4a574;
    border-radius: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
}

/* Dashboard Footer */
.dashboard-footer {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    border-top: 3px solid #d4a574;
}

/* Form Small Text */
.form-small-text {
    color: #999;
    display: block;
    margin-top: 5px;
}

/* Manager Content Grid */
.manager-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

.manager-orders-header,
.manager-Chefs-header {
    color: #ffffff;
    margin-bottom: 15px;
}

.Chefs-container {
    border: 2px solid #d4a574;
    border-radius: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
}

/* Modal Content Wrapper */
.modal-content-wrapper {
    max-width: 500px;
}

.Chef-management-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.Chef-management-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal-btn {
    color: #ffd89b;
    font-size: 2rem;
    cursor: pointer;
}

.modal-body-padding {
    padding: 25px;
}

.add-Chef-wrapper {
    background: linear-gradient(135deg, #f5e6d3, #fff);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #d4a574;
}

.add-Chef-wrapper h3 {
    margin: 0 0 15px 0;
    color: #3e2723;
    font-size: 1.1rem;
}

.Chef-name-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.add-Chef-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.add-Chef-submit-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

.modal-divider-wrapper {
    text-align: center;
    margin: 25px 0;
    color: #999;
}

.modal-divider-wrapper span {
    background: white;
    padding: 0 10px;
}

.modal-divider-wrapper hr {
    border: 1px solid #d4a574;
    margin-top: -15px;
}

.active-Chefs-header h3 {
    margin: 0 0 15px 0;
    color: #3e2723;
    font-size: 1.1rem;
}

.Chef-list-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.loading-message {
    text-align: center;
    color: #999;
    padding: 20px;
}

.modal-buttons-wrapper {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    border-top: 2px solid #e0d0b8;
    padding-top: 15px;
}

.modal-buttons-wrapper button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.modal-cancel-btn-style {
    background: #999;
    color: white;
}

.modal-cancel-btn-style:hover {
    background: #888;
}

.modal-done-btn-style {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.modal-done-btn-style:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
}

/* Order Assignment Modal */
.assignment-modal-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.assignment-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-assignment-modal-btn {
    color: #ffd89b;
    font-size: 2rem;
    cursor: pointer;
}

.assignment-modal-body {
    padding: 25px;
}

.assignment-order-info-card {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5e6d3, #fff);
    border: 2px solid #d4a574;
    border-radius: 12px;
    border-left: 5px solid #d4a574;
}

.assignment-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    border-top: 2px solid #e0d0b8;
    padding-top: 20px;
}

.assignment-action-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.assignment-cancel-btn {
    background: #999;
    color: white;
}

.assignment-cancel-btn:hover {
    background: #888;
}

.assignment-confirm-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.assignment-confirm-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Hidden Audio Element */
.hidden-audio {
    display: none;
}

/* Announcement Notification Styles */
.announcement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 500px;
    z-index: 1000;
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.announcement-notification.show {
    display: block;
}

.announcement-container {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-left: 5px solid #d4a574;
}

.announcement-header {
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.announcement-icon {
    font-size: 24px;
}

.announcement-title {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
}

.announcement-close {
    font-size: 28px;
    cursor: pointer;
    color: #ffd89b;
    transition: color 0.3s ease;
}

.announcement-close:hover {
    color: #fff;
}

.announcement-content {
    background: #f5e6d3;
    color: #2c1810;
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.announcement-content p {
    margin: 0;
    word-break: break-word;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.announcement-notification.hide {
    animation: slideOut 0.5s ease-in-out forwards;
}

/* Announcement Form */
#announcementText {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.1rem;
    color: #2c1810;
    background: #f5e6d3;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#announcementText:focus {
    outline: none;
    border-color: #8b6f47;
    background: #fff;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.login-header h1 {
    font-family: 'Quesha', cursive;
    font-size: 2.5rem;
    color: #3e2723;
    margin-bottom: 10px;
    font-weight: normal;
}

.role-selector-title {
    font-family: 'Quesha', cursive;
    font-size: 1.3rem;
    color: #3e2723;
    margin-bottom: 20px;
    font-weight: normal;
}

.Chef-login-info {
    background: linear-gradient(135deg, #f5e6d3, #faf8f5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #d4a574;
}

.Chef-login-title {
    font-family: 'Quesha', cursive;
    font-size: 1.2rem;
    color: #3e2723;
    margin-bottom: 8px;
    font-weight: normal;
}

.Chef-login-text {
    font-family: 'Quesha', cursive;
    font-size: 1rem;
    color: #5c3d2e;
    margin: 5px 0;
}

.Chef-login-text-small {
    font-family: 'Quesha', cursive;
    font-size: 0.95rem;
    color: #8b6f47;
    margin-top: 8px;
    font-style: italic;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Quesha', cursive;
    font-size: 1.15rem;
    color: #3e2723;
    margin-bottom: 8px;
    font-weight: normal;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.1rem;
    background: white;
    color: #3e2723;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 10px rgba(139, 111, 71, 0.2);
}

.form-small-text {
    font-family: 'Quesha', cursive;
    font-size: 0.9rem;
    color: #999;
    display: block;
    margin-top: 5px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: none;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.25rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.login-error {
    color: #d32f2f;
    margin-top: 15px;
    text-align: center;
    font-family: 'Quesha', cursive;
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.home-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: normal;
}

.home-btn:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    transform: translateY(-2px);
}

.hidden-form {
    display: none;
}

.hidden {
    display: none;
}

/* Contact Link & Modal Styles */
.contact-link {
    color: #ffd89b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px dotted #ffd89b;
}

.contact-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Modal styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.contact-modal[style*="display: flex"],
.contact-modal[style*="display:flex"] {
    display: flex !important;
}

.contact-content {
    background: linear-gradient(135deg, #2c1810, #5c3d2e);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #d4a574;
    position: relative;
    color: #fff;
}

.contact-content h3 {
    font-family: 'Quesha', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffd89b;
    font-weight: normal;
}

.contact-content p {
    font-family: 'Quesha', cursive;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-content strong {
    color: #d4a574;
}

.contact-content ul {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 20px;
}

.contact-content li {
    margin-bottom: 8px;
    font-family: 'Quesha', cursive;
    font-size: 1rem;
}

.contact-content a {
    color: #ffd89b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #ffd89b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #fff;
    transform: scale(1.2);
}

/* ===== PRODUCT IMAGE PREVIEW ===== */
.product-image-preview {
    margin: 10px 0 15px 0;
    padding: 12px;
    background: #0d0d0d;
    border: 2px dashed #d4a574;
    border-radius: 10px;
    text-align: center;
}

.product-image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #d4a574;
}

.product-image-preview p {
    margin: 0 0 8px 0;
    color: #4CAF50;
    font-size: 0.95rem;
    font-weight: bold;
}

.preview-clear-btn {
    padding: 6px 14px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ===== BLACK DASHBOARD THEME ===== */
/* Override the brown coffee background with a black theme for dashboards.
   The login/ordering forms remain light (they are scoped separately below). */

body {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0d0d0d);
    color: #ffffff;
}

.dashboard-container,
.manager-dashboard {
    background: #000000;
}

.dashboard-header {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border-bottom: 3px solid #d4a574;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.dashboard-header h1 {
    color: #ffd89b;
}

.subtitle {
    color: #b8a088;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid #d4a574;
}

/* Make the dashboard use a horizontal layout: sidebar left, content right */
.dashboard-container,
.manager-dashboard {
    display: flex;
    flex-direction: column;
}

.orders-section {
    background: #000000;
    color: #fff;
}

.manager-orders-header,
.manager-Chefs-header {
    color: #ffd89b;
}

.empty-state p,
.empty-state h2 {
    color: #ddd;
}

.dashboard-footer {
    background: #111111;
    border-top: 3px solid #d4a574;
}

/* Order cards in dashboards get a dark treatment */
.order-card {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}

/* Manager dynamically-created order cards use inline background:#fff - override */
#managerOrdersContainer > div {
    background: #1a1a1a !important;
    color: #fff !important;
    border-left: 5px solid #d4a574 !important;
}

#managerOrdersContainer > div * {
    color: #fff;
}

#managerOrdersContainer select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

/* Chefs container */
.Chefs-container {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.Chefs-container > div {
    background: #222 !important;
    border: 1px solid #444 !important;
}

.Chefs-container strong {
    color: #fff;
}

/* Headings */
.manager-orders-header,
.manager-Chefs-header {
    color: #ffd89b;
}

/* Assign/delete buttons remain visible */
.assign-order-btn {
    background: linear-gradient(135deg, #d4a574, #b8860b) !important;
    color: #000 !important;
}

/* Empty state */
.empty-state h2 {
    color: #ffd89b;
}

/* Modal content stays light so product forms are readable.
   This keeps the "ordering form" light as requested. */
.modal-content-wrapper {
    background: #ffffff;
    color: #222;
}

.modal-body-padding {
    color: #222;
}

/* Ensure the login modal (ordering form) stays light */
.login-modal {
    background: rgba(0, 0, 0, 0.85);
}

.login-container {
    background: #ffffff;
}

/* ===== DASHBOARD LAYOUT ===== */
/* Wrapper for controls bar and content area */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch;
}

/* Content area takes remaining space */
.dashboard-layout .orders-section {
    flex: 1;
    padding: 30px;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3e2723, #2c1810);
    border-bottom: 3px solid #d4a574;
    gap: 15px;
    flex-wrap: wrap;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: 2px solid #d4a574;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.control-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn.logout-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: #d32f2f;
    color: white;
}

.control-btn.back-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
    color: white;
}

/* Manager dashboard layout */
.manager-dashboard {
    display: flex;
    flex-direction: column;
}

.manager-main-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: stretch;
}

.manager-main-wrapper > .orders-section {
    flex: 1;
    padding: 30px;
}

/* Manager Right Horizontal Action Bar */
.manager-right-bar {
    width: 260px;
    min-width: 240px;
    background: #1a1a1a;
    border-left: 3px solid #d4a574;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}

.right-bar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.right-bar-title {
    color: #ffd89b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-family: 'Quesha', cursive;
    margin: 0;
}

.right-bar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.right-bar-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #5c3d2e, #3e2723);
    color: #ffd89b;
    border: 2px solid #d4a574;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Quesha', cursive;
    font-weight: normal;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.right-bar-btn:hover {
    background: linear-gradient(135deg, #3e2723, #2c1810);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.right-bar-btn.logout-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-color: #d32f2f;
}

.right-bar-btn.back-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #1976D2;
}

.right-bar-bottom {
    margin-top: auto;
}

@media (max-width: 900px) {
    .manager-dashboard {
        flex-direction: column;
    }

    .manager-main-wrapper {
        flex-direction: column;
    }

    .manager-right-bar {
        width: 100%;
        min-width: 0;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 3px solid #d4a574;
        padding: 15px;
        gap: 10px;
    }

    .right-bar-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .right-bar-title {
        width: 100%;
        margin-bottom: 0;
    }

    .right-bar-btn {
        flex: 1 1 auto;
    }

    .right-bar-bottom {
        margin-top: 0;
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }

    .right-bar-bottom .right-bar-btn {
        flex: 1;
    }
}

