/* Modern Button Styles */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-block;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Color Variants */

.btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-primary:active:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7f8c8d 0%, #566573 100%);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Size Variants */

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Button group styling */
.btn-group {
    display: inline-flex;
    gap: 8px;
}

.btn-group .btn {
    margin: 0;
    border-radius: 6px;
}

/* Special button variants */

.btn-complete {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
}

.btn-complete:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.btn-cancel {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
}

.btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #7f8c8d 0%, #5a6268 100%);
}

/* Quantity and action buttons */

.qty-btn, .qty-btn-modal {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.qty-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-1px);
}

.qty-btn:active {
    transform: translateY(0);
}

.qty-btn-modal {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.qty-btn-modal:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
}

.remove-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

.remove-btn:active {
    transform: translateY(0);
}

/* Tab buttons */

.tab-btn, .category-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn {
    background: #e9ecef;
    color: #2c3e50;
}

.tab-btn:hover {
    background: #d9dce0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.category-tab {
    background: #e9ecef;
    color: #3498db;
}

.category-tab:hover {
    background: #d9dce0;
}

.category-tab.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* Close buttons */

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: white;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* Small buttons */

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-add {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-add:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-1px);
}

.btn-remove {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
}

/* Mobile Friendly Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 40px;
        min-width: 40px;
        border-radius: 4px;
    }

    .btn-small {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn:active:not(:disabled) {
        transform: scale(0.98);
    }
}