

/*password reset style */
.forgot-password-link, .back-to-login {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link a, .back-to-login a {
    color: #007bff;
    text-decoration: none;
}

.forgot-password-link a:hover, .back-to-login a:hover {
    text-decoration: underline;
}

.alert.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
/*end of paassword reset style*/
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

header h1 {
    color: #2c3e50;
}

.user-info {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Alert messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Navigation tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
}

.tabs a:hover {
    color: #3498db;
}

.tabs a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

/* Login form */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* Dashboard stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 30px;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Order cards */
.orders-list {
    margin-bottom: 30px;
}

.order-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status:not([class*="completed"]) {
    background-color: #ffeaa7;
    color: #d35400;
}

.order-status.completed {
    background-color: #d4edda;
    color: #155724;
}

.order-details p {
    margin-bottom: 8px;
}

.order-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.order-actions form {
    display: flex;
    gap: 10px;
}

.order-actions select,
.order-actions button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.order-actions button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

.order-actions button:hover {
    background-color: #2980b9;
}

/* Menu categories */
.menu-categories {
    margin-bottom: 40px;
}

.category {
    margin-bottom: 30px;
}

.category h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.menu-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.menu-item .description {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.menu-item .price {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.add-to-cart {
    display: flex;
    gap: 10px;
}

.add-to-cart input {
    width: 60px;
    text-align: center;
}

.add-to-cart button {
    flex: 1;
}

/* Cart section */
.cart-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 40px;
}

.cart-table {
    margin-bottom: 30px;
}

.checkout-form {
    margin-top: 30px;
}
/* Additional styles for admin pages */
.form-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.table-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-x: auto;
}

.filters {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.filters form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.text-muted {
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters form {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 8px 10px;
    }
}

/* Additional styles for menu images */
.image-preview {
    max-width: 200px;
    max-height: 150px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
}

.menu-item-image {
    max-width: 80px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.text-muted {
    color: #7f8c8d;
    font-style: italic;
}

/* Form enhancements */
.form-group input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-item-image {
        max-width: 60px;
        max-height: 45px;
    }
    
    .image-preview {
        max-width: 150px;
        max-height: 120px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions form {
        flex-direction: column;
    }
    
}