/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* left side logo */
.header-left {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
    gap: 10px;
}

.header-right {
    text-align: right;
    font-size: 1.1rem;
}
/* main Logo */
.brand-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Pune Street Food Text */
.header-text {
    text-align: center;
}

#current-datetime {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    margin-top: 0;
    color: #666;
    font-size: 1rem;
}

.stats-card p {
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
}

/* Form Styles */
.order-form {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-form h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}
/* Online Payment And All Text Color Link */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.food-icon {
    width: 20px;
    height: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

/* Orders Table Styles */
.orders-list {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.orders-list h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

#orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#orders-table th, #orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

#orders-table tr:hover {
    background-color: #f5f5f5;
}

.delete-btn {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.delete-btn:hover {
    color: #c82333;
}

/* Export Section */
.export-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
}

.settings-btn {
    position: absolute;
    right: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    /* Improved transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.settings-btn:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.settings-btn i {
    font-size: 1.2rem;
    /* Smooth icon transition */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.settings-btn.active i {
    transform: rotate(180deg);
    color: #ff6b6b;
}

.export-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

.export-buttons.show {
    max-height: 300px;
    opacity: 1;
}

/* Discount Section */
/* .discount-group, .discount-controls, .discount-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.discount-controls {
    margin-top: 10px;
}

.final-price {
    margin-top: 10px;
    font-weight: bold;
    color: #28a745;
} */

/* Update the total price input styles */
#total-price:disabled {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #28a745;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toast.show {
    visibility: visible;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s;
}

@keyframes fadeIn {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Payment Filter Styles */
.payment-filter {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.payment-filter .btn {
    flex: 1;
    max-width: 150px;
    opacity: 0.7;
}

.payment-filter .btn.active {
    opacity: 1;
    transform: scale(1.02);
}

.order-row.hidden {
    display: none;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    margin-top: 50px;
    color: #666;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    footer {
        margin-top: 30px;
        padding: 15px;
    }
}

/* New Styles */
.item-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.item-desc.veg {
    border-left: 3px solid #28a745;
}

.item-desc.non-veg {
    border-left: 3px solid #dc3545;
}

/* Form Styles */
.form-group select#chips-packet {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px;
}

.form-group select#chips-packet:hover {
    border-color: #ff6b6b;
}

/* Make chips dropdown more prominent */
.form-group select#chips-packet option {
    padding: 8px;
}

.form-group select#chips-packet option:first-child {
    font-style: italic;
    color: #666;
}

/* Update the existing price input styles */
#price:disabled,
#total-price:disabled {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
}

/* Chips Information Styles */
.chips-info {
    color: #28a745;
    font-size: 0.85em;
    display: block;
    margin-top: 3px;
}

.chips-price {
    color: #28a745;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
    font-style: italic;
}

/* Update payment filter button styles */
.payment-filter .btn-info {
    background-color: #17a2b8;
    color: white;
}

.payment-filter .btn-info:hover {
    background-color: #138496;
}

/* Make table cells better aligned with multi-line content */
#orders-table td {
    vertical-align: middle;
    line-height: 1.4;
}

#orders-table td small {
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .export-section {
        flex-direction: column;
    }

    .export-section .btn {
        width: 100%;
    }

    .settings-btn {
        position: static;
        margin-bottom: 15px;
        width: 100%;
        border-radius: 4px;
        height: 40px;
        padding: 10px;
        background: #f8f9fa;
        /* Disable animations on mobile for better performance */
        transition: none;
    }

    .settings-btn:hover {
        transform: none;
    }

    .settings-btn i {
        transition: none;
    }

    .settings-btn.active i {
        transform: none;
        color: #ff6b6b;
    }
}

/* Split Payment Styles */
.split-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.validation-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.validation-message.show {
    display: block;
}

.price-dash {
    color: #999;
    font-style: italic;
}

.chips-included {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 5px;
}