/* Orders-specific styles */
.orders-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.order-item {
    background-color: var(--item-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--item-shadow);
    position: relative;
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--item-shadow-hover);
}

.order-item .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.order-item .customer-info {
    font-weight: bold;
    font-size: 1.1rem;
}

.order-item .order-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.order-item .product-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item .product-name {
    font-weight: 500;
    margin-bottom: 0;
}

.order-item .product-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.order-item .order-notes {
    background-color: var(--note-bg);
    padding: 8px;
    border-radius: 4px;
    font-style: italic;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
}

.order-item .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.order-item .order-footer > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-type-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-ordered {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-arrived {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-delivered {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-canceled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.action-button:hover {
    opacity: 1;
}

.edit-button {
    color: var(--edit-color);
}

.delete-button {
    color: var(--delete-color);
}

.call-button {
    color: var(--call-color);
}

.whatsapp-button {
    color: #25D366;  /* WhatsApp green */
}

.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-button {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--button-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: var(--button-hover-bg);
}

.filter-button.active {
    background-color: #007bff;
    color: white;
    border-color: #0069d9;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expected-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.type-product {
    background-color: #e7f5ff;
    color: #1971c2;
    border: 1px solid #a5d8ff;
}

.type-missing {
    background-color: #fff4e6;
    color: #e67700;
    border: 1px solid #ffe8cc;
}

.type-repair {
    background-color: #f0f4c3;
    color: #33691e;
    border: 1px solid #dce775;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--card-bg, #ffffff);
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    color: var(--text-muted, #6c757d);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover {
    color: var(--text-color, #212529);
}

.empty-list-message {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-style: italic;
}

/* Custom scrollbar */
.orders-section::-webkit-scrollbar {
    width: 8px;
}

.orders-section::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.orders-section::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

.orders-section::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Responsive styles */
@media (max-width: 768px) {
    .order-item .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item .order-date {
        margin-top: 5px;
    }
    
    .order-filters {
        gap: 5px;
    }
    
    .filter-button {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
    
    .order-actions {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .order-item .order-footer > div {
        gap: 5px;
    }
    
    .order-type-badge,
    .order-status {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cancel-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background-color: #e9ecef;
}

/* Tuesday Reminder Notification */
.tuesday-reminder {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background-color: #ff9800;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    z-index: 1100;
    transition: bottom 0.5s ease;
    opacity: 0;
}

.tuesday-reminder.show {
    bottom: 20px;
    opacity: 1;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reminder-icon {
    font-size: 24px;
}

.reminder-text {
    font-size: 14px;
    line-height: 1.4;
}

.reminder-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 15px;
    align-self: flex-start;
}

.reminder-close:hover {
    opacity: 0.8;
} 